VariableDefinition

sangria.ast.VariableDefinition
case class VariableDefinition(name: String, tpe: Type, defaultValue: Option[Value], directives: Vector[Directive], comments: Vector[Comment], location: Option[AstLocation]) extends AstNode, WithComments, WithDirectives

A definition of a variable to an operation.

Value parameters

defaultValue

Value that the variable should assume in an operation if none was provided with the GraphQL request.

name

Name of the variable being defined.

Attributes

See also
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait WithComments
trait AstNode
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

Attributes

Inherited from:
AstNode

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product