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
- Serializable
- Product
- Equals
- WithTrailingComments
- AstNode
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
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( ... ) @native() @HotSpotIntrinsicCandidate()
- val definitions: Vector[Definition]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- Document → Equals → AnyRef → Any
-
lazy val
fragments: Map[String, FragmentDefinition]
Map of fragment name to its definition.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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.
- 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
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- def withoutSourceMapper: Document