Exception: GraphQL::Schema::Argument::InvalidDefaultValueError

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

Instance Method Summary collapse

Constructor Details

#initialize(argument) ⇒ InvalidDefaultValueError

Returns a new instance of InvalidDefaultValueError.



313
314
315
316
# File 'lib/graphql/schema/argument.rb', line 313

def initialize(argument)
  message = "`#{argument.path}` has an invalid default value: `#{argument.default_value.inspect}` isn't accepted by `#{argument.type.to_type_signature}`; update the default value or the argument type."
  super(message)
end