UNPKG

412 BTypeScriptView Raw
1import type { ASTVisitor } from '../../language/visitor';
2import type { 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 * See https://spec.graphql.org/draft/#sec-Operation-Name-Uniqueness
9 */
10export declare function UniqueOperationNamesRule(
11 context: ASTValidationContext,
12): ASTVisitor;