UNPKG

377 BTypeScriptView Raw
1import { ASTVisitor } from '../../language/visitor';
2import { ValidationContext } from '../ValidationContext';
3
4/**
5 * No undefined variables
6 *
7 * A GraphQL operation is only valid if all variables encountered, both directly
8 * and via fragment spreads, are defined by that operation.
9 */
10export function NoUndefinedVariablesRule(
11 context: ValidationContext,
12): ASTVisitor;