class GraphQL::Batch::MutationExecutionStrategy::FieldResolution

Public Instance Methods

get_finished_value(raw_value) click to toggle source
# File lib/graphql/batch/mutation_execution_strategy.rb, line 8
def get_finished_value(raw_value)
  strategy = execution_context.strategy
  return super if strategy.enable_batching

  GraphQL::Batch::Executor.current.clear
  begin
    strategy.enable_batching = true
    strategy.deep_sync(::Promise.sync(super))
  ensure
    strategy.enable_batching = false
    GraphQL::Batch::Executor.current.clear
  end
end