validateAsExecutable

fun GQLDocument.validateAsExecutable(schema: Schema, fieldsOnDisjointTypesMustMerge: Boolean = true): GQLResult<List<GQLDefinition>>

Validates the given document as an executable document.

Return

a GQLResult containing the operation and fragment definitions in 'value', along with any potential issues

Parameters

fieldsOnDisjointTypesMustMerge

set to false to relax the standard GraphQL FieldsInSetCanMerge and allow fields of different types at the same Json path as long as their parent types are disjoint.