Exception: GraphQL::Schema::InvalidTypeError

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

Instance Method Summary collapse

Constructor Details

#initialize(type, name) ⇒ InvalidTypeError

Returns a new instance of InvalidTypeError.



87
88
89
# File 'lib/graphql/schema.rb', line 87

def initialize(type, name)
  super("#{name} has an invalid type: must be an instance of GraphQL::BaseType, not #{type.class.inspect} (#{type.inspect})")
end