@graphql-tools/batch-execute

Functions#

createBatchingExecutor#

createBatchingExecutor(executor: Executor, dataLoaderOptions?: DataLoader.Options<any, any, any\>, extensionsReducer?: (mergedExtensions: Record<string, any\>, executionParams: ExecutionParams) => Record<string, any\>): Executor

Parameters:#

NameType
executorExecutor
dataLoaderOptions?DataLoader.Options<any, any, any\>
extensionsReducer?(mergedExtensions: Record<string, any\>, executionParams: ExecutionParams) => Record<string, any\>

Returns: Executor

Defined in: packages/batch-execute/src/createBatchingExecutor.ts:14


getBatchingExecutor#

ConstgetBatchingExecutor(A1: Record<string, any\>, A2: Executor, A3: Options<any, any, any\>, A4: (mergedExtensions: Record<string, any\>, executionParams: ExecutionParams<Record<string, any\>, any\>) => Record<string, any\>): Executor

Parameters:#

NameType
A1Record<string, any\>
A2Executor
A3Options<any, any, any\>
A4(mergedExtensions: Record<string, any\>, executionParams: ExecutionParams<Record<string, any\>, any\>) => Record<string, any\>

Returns: Executor

Defined in: packages/batch-execute/src/getBatchingExecutor.ts:7