UniqueDirectivesPerLocationRule.d.ts 359 B

123456789101112
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ASTValidationContext } from '../ValidationContext';
  3. /**
  4. * Unique directive names per location
  5. *
  6. * A GraphQL document is only valid if all directives at a given location
  7. * are uniquely named.
  8. */
  9. export function UniqueDirectivesPerLocationRule(
  10. context: ASTValidationContext,
  11. ): ASTVisitor;