validateDocument method
Checks document against the schema this executor was built on.
Answers the errors found, empty when the document may be executed. executeRequest calls this when validate is on; call it yourself to check a document without running it, whichever way the flag is set.
Implementation
List<GraphQLExceptionError> validateDocument(DocumentContext document) =>
validation.validateDocument(document, _schema, customTypes);