Method: Graphql::Dashboard::OperationStore::OperationsController#show
- Defined in:
- lib/graphql/dashboard/operation_store.rb
#show ⇒ Object
132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/graphql/dashboard/operation_store.rb', line 132 def show digest = params[:digest] @operation = schema_class.operation_store.get_operation_by_digest(digest) if @operation # Parse & re-format the query document = GraphQL.parse(@operation.body) @graphql_source = document.to_query_string @client_operations = schema_class.operation_store.get_client_operations_by_digest(digest) @entries = schema_class.operation_store.get_index_entries_by_digest(digest) end end |