NoUndefinedVariablesRule.d.ts 377 B

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