graphql
Version: 
A Query Language and Runtime which can target any service.
13 lines (12 loc) • 408 B
TypeScript
import type { ASTVisitor } from '../../language/visitor';
import type { ASTValidationContext } from '../ValidationContext';
/**
 * Unique fragment names
 *
 * A GraphQL document is only valid if all defined fragments have unique names.
 *
 * See https://spec.graphql.org/draft/#sec-Fragment-Name-Uniqueness
 */
export declare function UniqueFragmentNamesRule(
  context: ASTValidationContext,
): ASTVisitor;