Module: GraphQL::Execution::Finalizer
- Included in:
- Interpreter::RawValue, RuntimeError, Subscriptions::Finalizer
- Defined in:
- lib/graphql/execution/next.rb
Overview
-- @requires_ancestor: Kernel
Instance Attribute Summary collapse
-
#ast_nodes ⇒ Object
Returns the value of attribute ast_nodes.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #ast_node ⇒ Object
- #ast_node=(new_node) ⇒ Object
- #finalize_graphql_result(query, result_data, result_key) ⇒ Object
Instance Attribute Details
#ast_nodes ⇒ Object
Returns the value of attribute ast_nodes.
32 33 34 |
# File 'lib/graphql/execution/next.rb', line 32 def ast_nodes @ast_nodes end |
#path ⇒ Object
Returns the value of attribute path.
18 19 20 |
# File 'lib/graphql/execution/next.rb', line 18 def path @path end |
Instance Method Details
#ast_node ⇒ Object
24 25 26 |
# File 'lib/graphql/execution/next.rb', line 24 def ast_node ast_nodes&.first end |
#ast_node=(new_node) ⇒ Object
28 29 30 |
# File 'lib/graphql/execution/next.rb', line 28 def ast_node=(new_node) @ast_nodes = [new_node] end |
#finalize_graphql_result(query, result_data, result_key) ⇒ Object
20 21 22 |
# File 'lib/graphql/execution/next.rb', line 20 def finalize_graphql_result(query, result_data, result_key) raise RequiredImplementationMissingError, "#{self.class} must implement #finalize_graphql_result(query, result_data, result_key)\n\nresult_data: #{result_data}\nresult_key: #{result_key.inspect}" end |