class GraphQL::Query::SerialExecution
def execute(ast_operation, root_type, query_object)
-
(Hash)
- a spec-compliant GraphQL result, as a hash
Parameters:
-
query_obj
(GraphQL::Query
) -- the query object for this execution -
root_type
(GraphQL::ObjectType
) -- either the query type or the mutation type -
ast_operation
(GraphQL::Language::Nodes::OperationDefinition
) -- The operation definition to run
def execute(ast_operation, root_type, query_object) irep_root = query_object.internal_representation[ast_operation.name] operation_resolution.new( irep_root, root_type, ExecutionContext.new(query_object, self) ).result end
def field_resolution
def field_resolution self.class::FieldResolution end
def operation_resolution
def operation_resolution self.class::OperationResolution end
def selection_resolution
def selection_resolution self.class::SelectionResolution end