Class GraphQLEnumType

java.lang.Object
graphql.schema.GraphQLEnumType
All Implemented Interfaces:
GraphQLDirectiveContainer, GraphQLInputSchemaElement, GraphQLInputType, GraphQLNamedInputType, GraphQLNamedOutputType, GraphQLNamedSchemaElement, GraphQLNamedType, GraphQLNullableType, GraphQLOutputType, GraphQLSchemaElement, GraphQLType, GraphQLUnmodifiedType

A graphql enumeration type has a limited set of values.

This allows you to validate that any arguments of this type are one of the allowed values and communicate through the type system that a field will always be one of a finite set of values.

See https://graphql.org/learn/schema/#enumeration-types for more details