UNPKG

graphql-document-collector

Version:

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

7 lines (6 loc) 292 B
import { DocumentNode } from 'graphql'; import { DocumentDirectory } from './ast'; export interface DocumentFlatMap { [docPath: string]: DocumentNode; } export declare function flattenDirectoryStructure(dir: DocumentDirectory, flatMap?: DocumentFlatMap, cwd?: string[]): DocumentFlatMap;