ScalarAlias

sangria.schema.ScalarAlias
case class ScalarAlias[T, ST](aliasFor: ScalarType[ST], toScalar: T => ST, fromScalar: ST => Either[Violation, T]) extends InputType[T @@ CoercedScalaResult], OutputType[T], LeafType, NullableType, UnmodifiedType, Named

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

override def astDirectives: Vector[Directive]

Attributes

Definition Classes
override def astNodes: Vector[AstNode]

Attributes

Definition Classes

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

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

Attributes

def name: String
def rename(newName: String): ScalarAlias.this.type

Inherited methods

Attributes

Inherited from:
InputType

Attributes

Inherited from:
Type

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

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