Value

grackle.Value
See theValue companion trait
object Value

Attributes

Companion
trait
Source
schema.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Value.type

Members list

Type members

Classlikes

case object AbsentValue extends Value

Attributes

Source
schema.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Value
class Object
trait Matchable
class Any
Show all
Self type
case class BooleanValue(value: Boolean) extends Value

Attributes

Source
schema.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Value
class Object
trait Matchable
class Any
Show all
case class EnumValue(name: String) extends Value

Attributes

Source
schema.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Value
class Object
trait Matchable
class Any
Show all
case class FloatValue(value: Double) extends Value

Attributes

Source
schema.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Value
class Object
trait Matchable
class Any
Show all
case class IDValue(value: String) extends Value

Attributes

Source
schema.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Value
class Object
trait Matchable
class Any
Show all
case class IntValue(value: Int) extends Value

Attributes

Source
schema.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Value
class Object
trait Matchable
class Any
Show all
case class ListValue(elems: List[Value]) extends Value

Attributes

Source
schema.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Value
class Object
trait Matchable
class Any
Show all
case object NullValue extends Value

Attributes

Source
schema.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Value
class Object
trait Matchable
class Any
Show all
Self type
NullValue.type
case class ObjectValue(fields: List[(String, Value)]) extends Value

Attributes

Source
schema.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Value
class Object
trait Matchable
class Any
Show all

Attributes

Source
schema.scala
Supertypes
class Object
trait Matchable
class Any
Self type
case class StringValue(value: String) extends Value

Attributes

Source
schema.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Value
class Object
trait Matchable
class Any
Show all
case class VariableRef(name: String) extends Value

Attributes

Source
schema.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Value
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def checkValue(iv: InputValue, value: Option[Value], location: String): Result[Value]

Resolve a value against its definition.

Resolve a value against its definition.

+ Absent and null values are defaulted if the InputValue provides a default. + Absent and null values are checked against the nullability of the InputValue. + Enum values are checked against the possible values of the EnumType. + Primitive values are converted to custom Scalars or IDs where appropriate. + The elements of list values are checked against their element type. + The fields of input object values are checked against their field definitions.

Attributes

Source
schema.scala
def checkVarValue(iv: InputValue, value: Option[Json], location: String): Result[Value]

Resolve a Json variable value against its definition.

Resolve a Json variable value against its definition.

+ Absent and null values are defaulted if the InputValue provides a default. + Absent and null values are checked against the nullability of the InputValue. + Enum values are checked against the possible values of the EnumType. + Primitive values are converted to custom Scalars or IDs where appropriate. + The elements of list values are checked against their element type. + The fields of input object values are checked against their field definitions.

Attributes

Source
schema.scala
def elaborateValue(value: Value, vars: Vars): Result[Value]

Elaborate a value by replacing variable references with their values.

Elaborate a value by replacing variable references with their values.

Attributes

Source
schema.scala
def fromAst(value: Value): Result[Value]

Attributes

Source
schema.scala