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 with WithComments with WithDirectives

A definition of a variable to an operation.

Attributes

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.

See also:
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait AstNode
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

Attributes

Inherited from:
AstNode

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product