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.
- Alphabetic
- By Inheritance
- Document
- Serializable
- Product
- Equals
- WithTrailingComments
- AstNode
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: Document): Document
An alias for
merge
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- lazy val analyzer: DocumentAnalyzer
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cacheKeyHash: Int
- Definition Classes
- AstNode
- def canEqual(other: Any): Boolean
- Definition Classes
- Document → Equals
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val definitions: Vector[Definition]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(other: Any): Boolean
- Definition Classes
- Document → Equals → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- lazy val fragments: Map[String, FragmentDefinition]
Map of fragment name to its definition.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- Document → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val location: Option[AstLocation]
Location at which this node lexically begins in the GraphQL request source code.
- def merge(other: Document): Document
Merges two documents.
Merges two documents. The
sourceMapper
s are combined. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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
- def operationType(operationName: Option[String] = None): Option[OperationType]
- lazy val operations: Map[Option[String], OperationDefinition]
Map of operation name to its definition.
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def renderCompact: String
- Definition Classes
- AstNode
- def renderPretty: String
- Definition Classes
- AstNode
- def separateOperation(operationName: Option[String]): Option[Document]
- def separateOperation(definition: OperationDefinition): Document
- lazy val separateOperations: Map[Option[String], Document]
- lazy val source: Option[String]
- val sourceMapper: Option[SourceMapper]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val trailingComments: Vector[Comment]
- Definition Classes
- Document → WithTrailingComments
- def visit(onEnter: (AstNode) => VisitorCommand, onLeave: (AstNode) => VisitorCommand): Document.this.type
- Definition Classes
- AstNode
- def visit(visitor: AstVisitor): Document.this.type
- Definition Classes
- AstNode
- def visitAstWithState[S](schema: Schema[_, _], state: S)(visitorFn: (TypeInfo, S) => AstVisitor): S
- Definition Classes
- AstNode
- def visitAstWithTypeInfo(schema: Schema[_, _])(visitorFn: (TypeInfo) => AstVisitor): Document.this.type
- Definition Classes
- AstNode
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withoutSourceMapper: Document