Class: GraphQL::Query::BaseExecution
- Inherits:
-
Object
- Object
- GraphQL::Query::BaseExecution
- Defined in:
- lib/graphql/query/base_execution.rb,
lib/graphql/query/base_execution/value_resolution.rb
Direct Known Subclasses
Defined Under Namespace
Modules: ValueResolution
Instance Method Summary collapse
-
#execute(ast_operation, root_type, query_obj) ⇒ Hash
This is the only required method for an Execution strategy.
- #field_resolution ⇒ Object
- #operation_resolution ⇒ Object
- #selection_resolution ⇒ Object
Instance Method Details
#execute(ast_operation, root_type, query_obj) ⇒ Hash
This is the only required method for an Execution strategy. You could create a custom execution strategy and configure your schema to use that custom strategy instead.
14 15 16 17 |
# File 'lib/graphql/query/base_execution.rb', line 14 def execute(ast_operation, root_type, query_obj) resolver = operation_resolution.new(ast_operation, root_type, query_obj, self) resolver.result end |
#field_resolution ⇒ Object
19 20 21 |
# File 'lib/graphql/query/base_execution.rb', line 19 def field_resolution self.class::FieldResolution end |
#operation_resolution ⇒ Object
23 24 25 |
# File 'lib/graphql/query/base_execution.rb', line 23 def operation_resolution self.class::OperationResolution end |
#selection_resolution ⇒ Object
27 28 29 |
# File 'lib/graphql/query/base_execution.rb', line 27 def selection_resolution self.class::SelectionResolution end |