UniqueOperationNames.d.ts 393 B

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