Module: GraphQL::Execution::Finalizer
- Included in:
- Interpreter::RawValue, RuntimeError, Subscriptions::Finalizer
- Defined in:
- lib/graphql/execution/next.rb
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.
27 28 29 |
# File 'lib/graphql/execution/next.rb', line 27 def ast_nodes @ast_nodes end |
#path ⇒ Object
Returns the value of attribute path.
13 14 15 |
# File 'lib/graphql/execution/next.rb', line 13 def path @path end |
Instance Method Details
#ast_node ⇒ Object
19 20 21 |
# File 'lib/graphql/execution/next.rb', line 19 def ast_node ast_nodes&.first end |
#ast_node=(new_node) ⇒ Object
23 24 25 |
# File 'lib/graphql/execution/next.rb', line 23 def ast_node=(new_node) @ast_nodes = [new_node] end |
#finalize_graphql_result(query, result_data, result_key) ⇒ Object
15 16 17 |
# File 'lib/graphql/execution/next.rb', line 15 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 |