EnumType

case class EnumType[T](name: String, description: Option[String], values: List[EnumValue[T]], astDirectives: Vector[Directive], astNodes: Vector[AstNode]) extends InputType[T @@ CoercedScalaResult] with OutputType[T] with LeafType with NullableType with UnmodifiedType with Named with HasAstInfo
Value parameters:
description

A description of this schema element that can be presented to clients of the GraphQL service.

trait Serializable
trait Product
trait Equals
trait LeafType
trait Named
trait OutputType[T]
trait InputType[T @@ CoercedScalaResult]
trait Type
class Object
trait Matchable
class Any

Value members

Concrete methods

def coerceOutput(value: T): String
def coerceUserInput(value: Any): Either[Violation, (T, Boolean)]
def rename(newName: String): EnumType[T]

Inherited methods

Inherited from:
InputType
Inherited from:
Type
Inherited from:
Product

Concrete fields

lazy val byName: Map[String, EnumValue[T]]
lazy val byValue: Map[T, EnumValue[T]]

Inherited fields

lazy val isList: Boolean
Inherited from:
InputType
lazy val isNamed: Boolean
Inherited from:
InputType
Inherited from:
InputType
Inherited from:
InputType