Exception: GraphQL::Schema::Enum::MissingValuesError
- Defined in:
- lib/graphql/schema/enum.rb
Instance Method Summary collapse
-
#initialize(enum_type) ⇒ MissingValuesError
constructor
A new instance of MissingValuesError.
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 |