GenAI_Course / node_modules /graphql /validation /rules /NoUndefinedVariablesRule.d.ts
sam522's picture
node
d4b85c0
raw
history blame contribute delete
466 Bytes
import type { ASTVisitor } from '../../language/visitor';
import type { ValidationContext } from '../ValidationContext';
/**
* No undefined variables
*
* A GraphQL operation is only valid if all variables encountered, both directly
* and via fragment spreads, are defined by that operation.
*
* See https://spec.graphql.org/draft/#sec-All-Variable-Uses-Defined
*/
export declare function NoUndefinedVariablesRule(
context: ValidationContext,
): ASTVisitor;