Files
lcbp3.np-dms.work/frontend/node_modules/graphql/validation/rules/NoFragmentCyclesRule.d.ts
2025-09-21 20:29:15 +07:00

14 lines
527 B
TypeScript

import type { ASTVisitor } from '../../language/visitor';
import type { ASTValidationContext } from '../ValidationContext';
/**
* No fragment cycles
*
* The graph of fragment spreads must not form any cycles including spreading itself.
* Otherwise an operation could infinitely spread or infinitely execute on cycles in the underlying data.
*
* See https://spec.graphql.org/draft/#sec-Fragment-spreads-must-not-form-cycles
*/
export declare function NoFragmentCyclesRule(
context: ASTValidationContext,
): ASTVisitor;