toExecutableDefinitions

fun BufferedSource.toExecutableDefinitions(    schema: Schema,     filePath: String? = null,     fieldsOnDisjointTypesMustMerge: Boolean = true): List<GQLDefinition>

Parses the source to a List<GQLDefinition>, throwing on parsing or validation errors.

See parseAsGQLDocument and validateAsExecutable for more granular error reporting