Class: GraphQL::Execution::Execute Private

Inherits:
Object
  • Object
show all
Includes:
ExecutionFunctions
Defined in:
lib/graphql/execution/execute.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

A valid execution strategy

API:

  • private

Defined Under Namespace

Modules: ExecutionFunctions, FieldResolveStep Classes: Skip

Constant Summary collapse

SKIP =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

Just a singleton for implementing Query::Context#skip

API:

  • private

Skip.new
PROPAGATE_NULL =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

API:

  • private

Object.new

Instance Method Summary collapse

Methods included from ExecutionFunctions

continue_resolve_field, resolve_field, resolve_selection, resolve_value

Instance Method Details

#execute(ast_operation, root_type, query) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/graphql/execution/execute.rb', line 18

def execute(ast_operation, root_type, query)
  result = resolve_selection(
    query.root_value,
    root_type,
    query.irep_selection,
    query.context,
    mutation: query.mutation?
  )

  GraphQL::Execution::Lazy.resolve(result)

  result.to_h
end