Exception: GraphQL::Schema::DuplicateTypeNamesError
- Defined in:
- lib/graphql/schema.rb
Instance Method Summary collapse
-
#initialize(type_name:, first_definition:, second_definition:, path:) ⇒ DuplicateTypeNamesError
constructor
A new instance of DuplicateTypeNamesError.
Constructor Details
#initialize(type_name:, first_definition:, second_definition:, path:) ⇒ DuplicateTypeNamesError
Returns a new instance of DuplicateTypeNamesError.
86 87 88 |
# File 'lib/graphql/schema.rb', line 86 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 |