Packages

c

sangria.ast

VariableDefinition

case class VariableDefinition(name: String, tpe: Type, defaultValue: Option[Value], directives: Vector[Directive] = Vector.empty, comments: Vector[Comment] = Vector.empty, location: Option[AstLocation] = None) extends AstNode with WithComments with WithDirectives with Product with Serializable

A definition of a variable to an operation.

name

Name of the variable being defined.

defaultValue

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

See also

https://spec.graphql.org/June2018/#VariableDefinition

Linear Supertypes
Serializable, Product, Equals, WithDirectives, WithComments, AstNode, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VariableDefinition
  2. Serializable
  3. Product
  4. Equals
  5. WithDirectives
  6. WithComments
  7. AstNode
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new VariableDefinition(name: String, tpe: Type, defaultValue: Option[Value], directives: Vector[Directive] = Vector.empty, comments: Vector[Comment] = Vector.empty, location: Option[AstLocation] = None)

    name

    Name of the variable being defined.

    defaultValue

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def cacheKeyHash: Int
    Definition Classes
    AstNode
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val comments: Vector[Comment]
    Definition Classes
    VariableDefinitionWithComments
  8. val defaultValue: Option[Value]
  9. val directives: Vector[Directive]
    Definition Classes
    VariableDefinitionWithDirectives
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val location: Option[AstLocation]

    Location at which this node lexically begins in the GraphQL request source code.

    Location at which this node lexically begins in the GraphQL request source code.

    Definition Classes
    VariableDefinitionAstNode
  15. val name: String
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def productElementNames: Iterator[String]
    Definition Classes
    Product
  20. def renderCompact: String
    Definition Classes
    AstNode
  21. def renderPretty: String
    Definition Classes
    AstNode
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. val tpe: Type
  24. def visit(onEnter: (AstNode) => VisitorCommand, onLeave: (AstNode) => VisitorCommand): VariableDefinition.this.type
    Definition Classes
    AstNode
  25. def visit(visitor: AstVisitor): VariableDefinition.this.type
    Definition Classes
    AstNode
  26. def visitAstWithState[S](schema: Schema[_, _], state: S)(visitorFn: (TypeInfo, S) => AstVisitor): S
    Definition Classes
    AstNode
  27. def visitAstWithTypeInfo(schema: Schema[_, _])(visitorFn: (TypeInfo) => AstVisitor): VariableDefinition.this.type
    Definition Classes
    AstNode
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from WithDirectives

Inherited from WithComments

Inherited from AstNode

Inherited from AnyRef

Inherited from Any

Ungrouped