import { ASTValidationContext } from "https://dotland.deno.dev/x/graphql_deno@v15.0.0/lib/validation/ValidationContext.d.ts";
An instance of this class is passed as the "this" context to all validators, allowing access to commonly useful contextual information from within a validation rule.
Constructors
new
ASTValidationContext(ast: DocumentNode, onError: (err: GraphQLError) => void)Methods
getFragment(name: string): Maybe<FragmentDefinitionNode>
getFragmentSpreads(node: SelectionSetNode): ReadonlyArray<FragmentSpreadNode>
getRecursivelyReferencedFragments(operation: OperationDefinitionNode): ReadonlyArray<FragmentDefinitionNode>
reportError(error: GraphQLError): undefined