Class: GraphQL::Query::BaseExecution::ValueResolution::NonNullResolution
- Inherits:
-
BaseResolution
- Object
- BaseResolution
- GraphQL::Query::BaseExecution::ValueResolution::NonNullResolution
- Defined in:
- lib/graphql/query/base_execution/value_resolution.rb
Instance Attribute Summary
Attributes inherited from BaseResolution
#ast_field, #execution_strategy, #field_type, #parent_type, #query, #target, #value
Instance Method Summary collapse
-
#result ⇒ Object
Get the “wrapped” type and resolve the value according to that type.
Methods inherited from BaseResolution
#get_strategy_for_kind, #initialize
Constructor Details
This class inherits a constructor from GraphQL::Query::BaseExecution::ValueResolution::BaseResolution
Instance Method Details
#result ⇒ Object
Get the “wrapped” type and resolve the value according to that type
69 70 71 72 73 74 75 |
# File 'lib/graphql/query/base_execution/value_resolution.rb', line 69 def result wrapped_type = field_type.of_type resolved_type = wrapped_type.resolve_type(value) strategy_class = get_strategy_for_kind(resolved_type.kind) inner_strategy = strategy_class.new(value, resolved_type, target, parent_type, ast_field, query, execution_strategy) inner_strategy.result end |