GQLDocument
class GQLDocument(val definitions: List<GQLDefinition>, val sourceLocation: SourceLocation?) : GQLNode
The top level node in a GraphQL document. This can be a schema document or an executable document (or something else if need be)
See parseAsGQLDocument for how to obtain a GQLDocument.
Properties
Functions
Link copied to clipboard
fun copy(definitions: List<GQLDefinition> = this.definitions, sourceLocation: SourceLocation? = this.sourceLocation): GQLDocument
Link copied to clipboard
Internal-only. Copies this code using the given children
Link copied to clipboard
fun GQLDocument.mergeExtensions(mergeOptions: MergeOptions = MergeOptions.Default): GQLResult<GQLDocument>
Link copied to clipboard
Returns a "full schema" document containing the built-in definitions supported by Apollo Kotlin.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun GQLDocument.toSDL(indent: String = " ", includeBuiltInScalarDefinitions: Boolean = false): String
Outputs a schema document to SDL. For executable documents, use toUtf8()
Link copied to clipboard
Link copied to clipboard
Validates the given document as an executable document.
Link copied to clipboard
Validate the given document as a schema:
Link copied to clipboard
Link copied to clipboard
Add built-in definitions supported by Apollo Kotlin to the GQLDocument
Link copied to clipboard
Link copied to clipboard
Internal-only. Copies this code using the given children