UNPKG

@graphql-tools/batch-execute

Version:

A set of utils for faster development of GraphQL tools

4 lines (3 loc) 348 B
import DataLoader from 'dataloader'; import { Executor, ExecutionRequest } from '@graphql-tools/utils'; export declare function createBatchingExecutor(executor: Executor, dataLoaderOptions?: DataLoader.Options<any, any, any>, extensionsReducer?: (mergedExtensions: Record<string, any>, request: ExecutionRequest) => Record<string, any>): Executor;