KnownFragmentNamesRule.d.ts 353 B

12345678910
  1. import { ASTVisitor } from '../../language/visitor';
  2. import { 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. export function KnownFragmentNamesRule(context: ValidationContext): ASTVisitor;