Method: GraphQL::Schema::Warden#root_type_for_operation

Defined in:
lib/graphql/schema/warden.rb

#root_type_for_operation(op_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



365
366
367
368
369
370
371
372
# File 'lib/graphql/schema/warden.rb', line 365

def root_type_for_operation(op_name)
  root_type = @schema.root_type_for_operation(op_name)
  if root_type && visible?(root_type)
    root_type
  else
    nil
  end
end