Skip to content

Function: dispatchBatchOperation() ​

dispatchBatchOperation(adapter, operation, part?): Promise<BatchOperationResponse>

Defined in: batch/batch-dispatch.ts:385

Run one operation through the application's HTTP stack, in process: the Fastify instance's inject(), else the Express application (a Node request handler). When part is given, the operation runs as that $batch operation: in its async context and, on Express, with part attached to the request (see getODataBatchPart). Fastify's inject() cannot carry request properties: there the async context is the only carrier.

Parameters ​

adapter ​

BatchHttpAdapter

operation ​

BatchOperationRequest

part? ​

ODataBatchPartContext

Returns ​

Promise<BatchOperationResponse>