Function: getODataBatchPart()
getODataBatchPart(
request?):ODataBatchPartContext|undefined
Defined in: batch/batch-dispatch.ts:62
The $batch operation being handled, or undefined for a request that is not part of a $batch. Guards, interceptors, route handlers and hooks can read it to apply a batch-specific policy (for example refusing some operations inside a batch).
Read from request when given (pass it from guards and middleware, which run before the OData request context is set), else from the request of the current OData request context, else from the async context.
Parameters
request?
unknown
Returns
ODataBatchPartContext | undefined