NoUndefinedVariablesRule.d.ts 466 B

12345678910111213
  1. import type { ASTVisitor } from '../../language/visitor';
  2. import type { 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. * See https://spec.graphql.org/draft/#sec-All-Variable-Uses-Defined
  10. */
  11. export declare function NoUndefinedVariablesRule(
  12. context: ValidationContext,
  13. ): ASTVisitor;