UniqueOperationNamesRule.d.ts 323 B

1234567891011
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { ASTValidationContext } from '../ValidationContext';
  3. /**
  4. * Unique operation names
  5. *
  6. * A GraphQL document is only valid if all defined operations have unique names.
  7. */
  8. export function UniqueOperationNamesRule(
  9. context: ASTValidationContext,
  10. ): ASTVisitor;