Exception: GraphQL::Execution::Skip

Inherits:
RuntimeError show all
Defined in:
lib/graphql/execution.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Attributes included from Finalizer

#ast_nodes

Instance Method Summary collapse

Methods included from Finalizer

#ast_node, #ast_node=

Instance Attribute Details

#path ⇒ Object

Returns the value of attribute path.



15
16
17
# File 'lib/graphql/execution.rb', line 15

def path
  @path
end

Instance Method Details

#ast_nodes=(_ignored) ⇒ Object



16
# File 'lib/graphql/execution.rb', line 16

def ast_nodes=(_ignored); end

#finalize_graphql_result(query, result_data, key) ⇒ Object



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

def finalize_graphql_result(query, result_data, key)
  case result_data
  when Hash
    result_data.delete(key)
  when Array
    result_data.delete_at(key)
  else
    raise "Unexpected result data #{result_data.class}: #{result_data}"
  end
end