NoDeprecatedCustomRule.d.ts 580 B

1234567891011121314
  1. import { ASTVisitor } from '../../../language/visitor';
  2. import { ValidationContext } from '../../ValidationContext';
  3. /**
  4. * No deprecated
  5. *
  6. * A GraphQL document is only valid if all selected fields and all used enum values have not been
  7. * deprecated.
  8. *
  9. * Note: This rule is optional and is not part of the Validation section of the GraphQL
  10. * Specification. The main purpose of this rule is detection of deprecated usages and not
  11. * necessarily to forbid their use when querying a service.
  12. */
  13. export function NoDeprecatedCustomRule(context: ValidationContext): ASTVisitor;