---
url: /nestjs-odata/api/generated/functions/resolveBatchOperationUrl.md
---
# Function: resolveBatchOperationUrl()

> **resolveBatchOperationUrl**(`operationUrl`, `batchUrl`): `URL`

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

The URL a batch operation targets (use its `pathname` and `search`). OData-Protocol §11.7.7.1
allows an absolute URI, an absolute path, or a path relative to the batch request URL (that
is, to the service root). Throws on an unparsable URL.

## Parameters

### operationUrl

`string`

### batchUrl

`string` | `URL`

## Returns

`URL`
