Module: GraphQL::Query::SerialExecution::OperationResolution

Defined in:
lib/graphql/query/serial_execution/operation_resolution.rb

Class Method Summary collapse

Class Method Details

.resolve(irep_node, target, query) ⇒ Object


5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/graphql/query/serial_execution/operation_resolution.rb', line 5

def self.resolve(irep_node, target, query)
  result = query.context.execution_strategy.selection_resolution.resolve(
    query.root_value,
    target,
    [irep_node],
    query.context,
  )

  result
rescue GraphQL::InvalidNullError => err
  err.parent_error? || query.context.errors.push(err)
  nil
end