Method: GraphQL::Schema#execution_strategy_for_operation

Defined in:
lib/graphql/schema.rb

#execution_strategy_for_operation(operation) ⇒ Object


368
369
370
371
372
373
374
375
376
377
378
379
# File 'lib/graphql/schema.rb', line 368

def execution_strategy_for_operation(operation)
  case operation
  when "query"
    query_execution_strategy
  when "mutation"
    mutation_execution_strategy
  when "subscription"
    subscription_execution_strategy
  else
    raise ArgumentError, "unknown operation type: #{operation}"
  end
end