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

Linear Supertypes
Serializable, Product, Equals, WithTrailingComments, AstNode, AnyRef, Any
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. lazy val analyzer: DocumentAnalyzer
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def cacheKeyHash: Int
    Definition Classes
    AstNode
  8. def canEqual(other: Any): Boolean
    Definition Classes
    Document → Equals
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. val definitions: Vector[Definition]
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(other: Any): Boolean
    Definition Classes
    Document → Equals → AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  14. lazy val fragments: Map[String, FragmentDefinition]

    Map of fragment name to its definition.

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

    Merges two documents.

    Merges two documents. The sourceMappers are combined.

  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. 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

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

    Map of operation name to its definition.

  26. def productElementNames: Iterator[String]
    Definition Classes
    Product
  27. def renderCompact: String
    Definition Classes
    AstNode
  28. def renderPretty: String
    Definition Classes
    AstNode
  29. def separateOperation(operationName: Option[String]): Option[Document]
  30. def separateOperation(definition: OperationDefinition): Document
  31. lazy val separateOperations: Map[Option[String], Document]
  32. lazy val source: Option[String]
  33. val sourceMapper: Option[SourceMapper]
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. val trailingComments: Vector[Comment]
    Definition Classes
    DocumentWithTrailingComments
  36. def visit(onEnter: (AstNode) => VisitorCommand, onLeave: (AstNode) => VisitorCommand): Document.this.type
    Definition Classes
    AstNode
  37. def visit(visitor: AstVisitor): Document.this.type
    Definition Classes
    AstNode
  38. def visitAstWithState[S](schema: Schema[_, _], state: S)(visitorFn: (TypeInfo, S) => AstVisitor): S
    Definition Classes
    AstNode
  39. def visitAstWithTypeInfo(schema: Schema[_, _])(visitorFn: (TypeInfo) => AstVisitor): Document.this.type
    Definition Classes
    AstNode
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  43. 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