Class: GraphQL::Batch::ExecutionStrategy::FieldResolution
- Inherits:
-
Query::SerialExecution::FieldResolution
- Object
- Query::SerialExecution::FieldResolution
- GraphQL::Batch::ExecutionStrategy::FieldResolution
- Defined in:
- lib/graphql/batch/execution_strategy.rb
Instance Method Summary collapse
Instance Method Details
#get_finished_value(raw_value) ⇒ Object
50 51 52 53 54 55 56 57 58 |
# File 'lib/graphql/batch/execution_strategy.rb', line 50 def get_finished_value(raw_value) if raw_value.is_a?(::Promise) raw_value.then(->(result) { super(result) }, lambda do |error| error.is_a?(GraphQL::ExecutionError) ? super(error) : raise(error) end) else super end end |