EnumType

sangria.schema.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

Attributes

description

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

Graph
Supertypes
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

Members list

Concise view

Value members

Concrete methods

def coerceOutput(value: T): String
def coerceUserInput(value: Any): Either[Violation, (T, Boolean)]
def rename(newName: String): EnumType.this.type
def withDirective(directive: Directive): EnumType[T]
def withDirectives(directives: Directive*): EnumType[T]

Inherited methods

Attributes

Inherited from:
InputType

Attributes

Inherited from:
Type

Attributes

Inherited from:
Product

Attributes

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

Attributes

Inherited from:
InputType
lazy val isNamed: Boolean

Attributes

Inherited from:
InputType

Attributes

Inherited from:
InputType

Attributes

Inherited from:
InputType