GQLDocument
data class GQLDocument(val definitions: List<GQLDefinition>, val filePath: String?) : GQLNode
Content copied to clipboard
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.
Constructors
Types
Functions
Link copied to clipboard
open override fun copyWithNewChildrenInternal(container: NodeContainer): GQLNode
Content copied to clipboard
Internal-only. Copies this code using the given children
Link copied to clipboard
Internal-only. Copies this code using the given children
Properties
Extensions
Link copied to clipboard
fun GQLDocument.validateAsExecutable(schema: Schema, fieldsOnDisjointTypesMustMerge: Boolean = true): GQLResult<List<GQLDefinition>>
Content 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
fun GQLDocument.validateAsSchemaAndAddApolloDefinition(): GQLResult<Schema>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard