class GraphQL::Batch::ExecutionStrategy::FieldResolution

Public Instance Methods

get_finished_value(raw_value) click to toggle source
Calls superclass method
# File lib/graphql/batch/execution_strategy.rb, line 56
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