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

> **parseApply**(`input`): [`ApplyNode`](../interfaces/ApplyNode.md)

Defined in: [parser/apply-parser.ts:239](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/parser/apply-parser.ts#L239)

Parse an OData $apply transformation pipeline into an ApplyNode AST.

Steps are separated by '/' at depth 0. Each step is one of:

* filter(...)
* aggregate(...)
* groupby((...),aggregate(...))

## Parameters

### input

`string`

The raw $apply query string value (without the $apply= prefix)

## Returns

[`ApplyNode`](../interfaces/ApplyNode.md)

## Throws

ODataParseError for empty input, unrecognized steps, invalid aliases,
or post-groupby filter steps (HAVING not supported)
