lib/graphql8/query/serial_execution.rb
# This is the only required method for an Execution strategy.
# You could create a custom execution strategy and configure your schema to
# use that custom strategy instead.
#
# @param ast_operation [GraphQL8::Language::Nodes::OperationDefinition] The operation definition to run
# @param root_type [GraphQL8::ObjectType] either the query type or the mutation type
# @param query_object [GraphQL8::Query] the query object for this execution
# @return [Hash] a spec-compliant GraphQL8 result, as a hash
This is the only required method for an Execution strategy.
You could create a custom execution strategy and configure your schema to
use that custom strategy instead.
This is the only required method for an Execution strategy . You could create a custom execution strategy and configure your schema to use that custom strategy instead .
def execute(ast_operation, root_type, query_object)
        operation_resolution.resolve(
          query_object.irep_selection,
          root_type,
          query_object
        )
      end
def execute ( ast_operation , root_type , query_object ) operation_resolution . resolve ( query_object . irep_selection , root_type , query_object ) end
This is the only required method for an Execution strategy.
This is the only required method for an Execution strategy .
a spec-compliant GraphQL8 result, as a hash
a spec - compliant GraphQL8 result as a hash
Hash
ast_operation
The operation definition to run
The operation definition to run
root_type
either the query type or the mutation type
either the query type or the mutation type
query_object
the query object for this execution
the query object for this execution