NoFragmentCyclesRule.d.ts 527 B

12345678910111213
  1. import type { ASTVisitor } from '../../language/visitor';
  2. import 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. */
  11. export declare function NoFragmentCyclesRule(
  12. context: ASTValidationContext,
  13. ): ASTVisitor;