---
url: /nestjs-odata/api/generated/interfaces/ODataBatchPartContext.md
---
# Interface: ODataBatchPartContext

Defined in: [batch/batch-dispatch.ts:27](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/batch/batch-dispatch.ts#L27)

The `$batch` operation the application is currently handling (see [getODataBatchPart](../functions/getODataBatchPart.md)).

## Properties

### batchRequest

> `readonly` **batchRequest**: `unknown`

Defined in: [batch/batch-dispatch.ts:37](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/batch/batch-dispatch.ts#L37)

The platform request of the enclosing `$batch` request.

***

### changeset?

> `readonly` `optional` **changeset?**: `unknown`

Defined in: [batch/batch-dispatch.ts:42](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/batch/batch-dispatch.ts#L42)

The changeset's unit of work, set by the adapter for operations of a changeset (for the
TypeORM adapter, the transaction's `EntityManager`; see `getODataChangesetManager()`).

***

### contentId?

> `readonly` `optional` **contentId?**: `string`

Defined in: [batch/batch-dispatch.ts:33](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/batch/batch-dispatch.ts#L33)

`Content-ID` of the operation, if any.

***

### inChangeset

> `readonly` **inChangeset**: `boolean`

Defined in: [batch/batch-dispatch.ts:35](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/batch/batch-dispatch.ts#L35)

True when the operation belongs to a changeset (an atomic group).

***

### method

> `readonly` **method**: `string`

Defined in: [batch/batch-dispatch.ts:29](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/batch/batch-dispatch.ts#L29)

HTTP method of the operation, as sent in the batch.

***

### url

> `readonly` **url**: `string`

Defined in: [batch/batch-dispatch.ts:31](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/batch/batch-dispatch.ts#L31)

URL of the operation, as sent in the batch (after `$<Content-ID>` references are resolved).
