Class: GraphQL::Query::FieldResolutionStrategy::ObjectResolutionStrategy
- Inherits:
-
Object
- Object
- GraphQL::Query::FieldResolutionStrategy::ObjectResolutionStrategy
- Defined in:
- lib/graph_ql/query/field_resolution_strategy.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(value, field_type, target, parent_type, ast_field, operation_resolver) ⇒ ObjectResolutionStrategy
constructor
A new instance of ObjectResolutionStrategy.
Constructor Details
#initialize(value, field_type, target, parent_type, ast_field, operation_resolver) ⇒ ObjectResolutionStrategy
Returns a new instance of ObjectResolutionStrategy.
54 55 56 57 |
# File 'lib/graph_ql/query/field_resolution_strategy.rb', line 54 def initialize(value, field_type, target, parent_type, ast_field, operation_resolver) resolver = GraphQL::Query::SelectionResolver.new(value, field_type, ast_field.selections, operation_resolver) @result = resolver.result end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
53 54 55 |
# File 'lib/graph_ql/query/field_resolution_strategy.rb', line 53 def result @result end |