parseAsGQLDocument

fun BufferedSource.parseAsGQLDocument(filePath: String? = null): GQLResult<GQLDocument>

Parses the source to a GQLDocument, validating the syntax but not the contents of the document.

You can then use validateAsSchema to validate the contents and get a Schema. Or use validateAsExecutable to validate the contents get a list of operations/fragments.

Return

a GQLResult with either a non-null GQLDocument or a list of issues.