Exception: GraphQL::Execution::Skip Private

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

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.

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

#pathObject

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.



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

def path
  @path
end

Instance Method Details

#ast_nodes=(_ignored) ⇒ 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.



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

def ast_nodes=(_ignored); end

#finalize_graphql_result(query, result_data, key) ⇒ 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.



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

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