Exception: GraphQL::Schema::DuplicateTypeNamesError

Inherits:
Error
  • Object
show all
Defined in:
lib/graphql/schema.rb

Instance Method Summary collapse

Constructor Details

#initialize(type_name:, first_definition:, second_definition:, path:) ⇒ DuplicateTypeNamesError

Returns a new instance of DuplicateTypeNamesError.



89
90
91
# File 'lib/graphql/schema.rb', line 89

def initialize(type_name:, first_definition:, second_definition:, path:)
  super("Multiple definitions for `#{type_name}`. Previously found #{first_definition.inspect} (#{first_definition.class}), then found #{second_definition.inspect} (#{second_definition.class}) at #{path.join(".")}")
end