Exception: GraphQL::Schema::Enum::MissingValuesError

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

Instance Method Summary collapse

Constructor Details

#initialize(enum_type) ⇒ MissingValuesError

Returns a new instance of MissingValuesError.



38
39
40
41
# File 'lib/graphql/schema/enum.rb', line 38

def initialize(enum_type)
  @enum_type = enum_type
  super("Enum types require at least one value, but #{enum_type.graphql_name} didn't provide any for this query. Make sure at least one value is defined and visible for this query.")
end