UNPKG

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