Method: Graphql::Dashboard::OperationStore::IndexEntriesController#index
- Defined in:
- lib/graphql/dashboard/operation_store.rb
#index ⇒ Object
176 177 178 179 180 181 182 183 184 185 186 187 188 |
# File 'lib/graphql/dashboard/operation_store.rb', line 176 def index @search_term = if request.params["q"] && request.params["q"].length > 0 request.params["q"] else nil end @index_entries_page = schema_class.operation_store.all_index_entries( search_term: @search_term, page: params[:page]&.to_i || 1, per_page: params[:per_page]&.to_i || 25, ) end |