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.



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

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