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], OutputType[T], LeafType, NullableType, UnmodifiedType, Named, HasAstInfo

Value parameters

description

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

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait NullableType
trait LeafType
trait HasAstInfo
trait Named
trait OutputType[T]
trait InputType[T @@ CoercedScalaResult]
trait Type
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def coerceInput(value: Value): Either[Violation, (T, Boolean)]
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
lazy val isOptional: Boolean

Attributes

Inherited from:
InputType
lazy val nonOptionalType: InputType[_]

Attributes

Inherited from:
InputType