validate
Validates a GraphQL operation document string against the compiled schema.
Return
ValidationResult indicating whether the document is valid and any errors.
Parameters
schema
A compiled executable GraphQLSchema.
operationDocument
The GraphQL operation (query or mutation) as a string.