UNPKG

graphql-document-collector

Version:

Load up smartly, in one location, all of the GraphQL queries/mutations/subscriptions of your project

5 lines (4 loc) 254 B
import { DocumentNode } from 'graphql'; import { DocumentDirectory } from './ast'; export declare function loadDocument(pt: string): Promise<DocumentNode>; export declare function loadGlob(basePath: string, globPath: string): Promise<DocumentDirectory>;