Class: GraphQL::Execution::Interpreter::Runtime::GraphQLResultHash Private
- Inherits:
-
Hash
- Object
- Hash
- GraphQL::Execution::Interpreter::Runtime::GraphQLResultHash
- Includes:
- GraphQLResult
- Defined in:
- lib/graphql/execution/interpreter/runtime.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
-
#graphql_merged_into ⇒ Object
private
Attributes included from GraphQLResult
#graphql_dead, #graphql_non_null_field_names, #graphql_non_null_list_items, #graphql_parent, #graphql_result_name
Instance Method Summary collapse
-
#[]=(key, value) ⇒ Object
private
Instance Attribute Details
#graphql_merged_into ⇒ 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.
28 29 30 |
# File 'lib/graphql/execution/interpreter/runtime.rb', line 28 def graphql_merged_into @graphql_merged_into end |
Instance Method Details
#[]=(key, value) ⇒ 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.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/graphql/execution/interpreter/runtime.rb', line 30 def []=(key, value) # This is a hack. # Basically, this object is merged into the root-level result at some point. # But the problem is, some lazies are created whose closures retain reference to _this_ # object. When those lazies are resolved, they cause an update to this object. # # In order to return a proper top-level result, we have to update that top-level result object. # In order to return a proper partial result (eg, for a directive), we have to update this object, too. # Yowza. if (t = @graphql_merged_into) t[key] = value end super end |