KnownFragmentNamesRule.d.ts 452 B

12345678910111213
  1. import type { ASTVisitor } from '../../language/visitor';
  2. import type { ValidationContext } from '../ValidationContext';
  3. /**
  4. * Known fragment names
  5. *
  6. * A GraphQL document is only valid if all `...Fragment` fragment spreads refer
  7. * to fragments defined in the same document.
  8. *
  9. * See https://spec.graphql.org/draft/#sec-Fragment-spread-target-defined
  10. */
  11. export declare function KnownFragmentNamesRule(
  12. context: ValidationContext,
  13. ): ASTVisitor;