summaryrefslogtreecommitdiff
path: root/alarm/node_modules/graphql/validation/rules/NoUndefinedVariablesRule.d.ts
blob: d1a080655bc34f81f6def278ea42ee51a39f6915 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { ASTVisitor } from '../../language/visitor';
import { 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.
 */
export function NoUndefinedVariablesRule(
  context: ValidationContext,
): ASTVisitor;