KnownArgumentNamesRule.d.ts 480 B

1234567891011121314151617
  1. import { ValidationContext, SDLValidationContext } from '../ValidationContext';
  2. import { ASTVisitor } from '../../language/visitor';
  3. /**
  4. * Known argument names
  5. *
  6. * A GraphQL field is only valid if all supplied arguments are defined by
  7. * that field.
  8. */
  9. export function KnownArgumentNamesRule(context: ValidationContext): ASTVisitor;
  10. /**
  11. * @internal
  12. */
  13. export function KnownArgumentNamesOnDirectivesRule(
  14. context: ValidationContext | SDLValidationContext,
  15. ): ASTVisitor;