separateOperations.d.ts 398 B

1234567891011
  1. import { DocumentNode } from '../language/ast';
  2. /**
  3. * separateOperations accepts a single AST document which may contain many
  4. * operations and fragments and returns a collection of AST documents each of
  5. * which contains a single operation as well the fragment definitions it
  6. * refers to.
  7. */
  8. export function separateOperations(
  9. documentAST: DocumentNode,
  10. ): { [key: string]: DocumentNode };