Packages

case class Document(definitions: Vector[Definition], trailingComments: Vector[Comment] = Vector.empty, location: Option[AstLocation] = None, sourceMapper: Option[SourceMapper] = None) extends AstNode with WithTrailingComments with Product with Serializable

A complete GraphQL request operated on by a GraphQL service.

definitions

The definitions, which primarily constitute the document.

See also

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

Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Document
  2. Serializable
  3. Product
  4. Equals
  5. WithTrailingComments
  6. AstNode
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Document(definitions: Vector[Definition], trailingComments: Vector[Comment] = Vector.empty, location: Option[AstLocation] = None, sourceMapper: Option[SourceMapper] = None)

    definitions

    The definitions, which primarily constitute the document.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: Document): Document

    An alias for merge

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def cacheKeyHash: Int
    Definition Classes
    AstNode
  7. def canEqual(other: Any): Boolean
    Definition Classes
    Document → Equals
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. val definitions: Vector[Definition]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(other: Any): Boolean
    Definition Classes
    Document → Equals → AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. lazy val fragments: Map[String, FragmentDefinition]

    Map of fragment name to its definition.

  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    Document → AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. 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
    DocumentAstNode
  18. def merge(other: Document): Document

    Merges two documents.

    Merges two documents. The sourceMappers are combined.

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. def operation(operationName: Option[String] = None): Option[OperationDefinition]

    Return the operation for the given name.

    Return the operation for the given name.

    returns

    None, if no operations are defined or if the given name is ambiguous

  23. def operationType(operationName: Option[String] = None): Option[OperationType]
  24. lazy val operations: Map[Option[String], OperationDefinition]

    Map of operation name to its definition.

  25. def productElementNames: Iterator[String]
    Definition Classes
    Product
  26. lazy val source: Option[String]
  27. val sourceMapper: Option[SourceMapper]
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. val trailingComments: Vector[Comment]
    Definition Classes
    DocumentWithTrailingComments
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. def withoutSourceMapper: Document

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from WithTrailingComments

Inherited from AstNode

Inherited from AnyRef

Inherited from Any

Ungrouped