Catch the highlights of GraphQLConf 2023! Click for recordings. Or check out our recap blog post.
Docs
API Reference
Packages
batch-execute

@graphql-tools/batch-execute

Functions

Functions

createBatchingExecutor

createBatchingExecutor(executor, dataLoaderOptions?, extensionsReducer?): Executor

Parameters

NameTypeDefault value
executorExecutorundefined
dataLoaderOptions?Options<any, any, any>undefined
extensionsReducer(mergedExtensions: Record<string, any>, request: ExecutionRequest<any, any, any, Record<string, any>, any>) => Record<string, any>defaultExtensionsReducer

Returns

Executor

Defined in

packages/batch-execute/src/createBatchingExecutor.ts:13


getBatchingExecutor

getBatchingExecutor(_context, executor, dataLoaderOptions?, extensionsReducer?): Executor

Parameters

NameType
_contextRecord<string, any>
executorExecutor
dataLoaderOptions?Options<any, any, any>
extensionsReducer?(mergedExtensions: Record<string, any>, request: ExecutionRequest<any, any, any, Record<string, any>, any>) => Record<string, any>

Returns

Executor

Defined in

packages/batch-execute/src/getBatchingExecutor.ts:5