UNPKG

527 BTypeScriptView Raw
1import type { ASTVisitor } from '../../language/visitor';
2import type { ASTValidationContext } from '../ValidationContext';
3/**
4 * No fragment cycles
5 *
6 * The graph of fragment spreads must not form any cycles including spreading itself.
7 * Otherwise an operation could infinitely spread or infinitely execute on cycles in the underlying data.
8 *
9 * See https://spec.graphql.org/draft/#sec-Fragment-spreads-must-not-form-cycles
10 */
11export declare function NoFragmentCyclesRule(
12 context: ASTValidationContext,
13): ASTVisitor;