Skip to content

Function: parseApply()

parseApply(input): ApplyNode

Defined in: packages/core/src/parser/apply-parser.ts:239

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

Throws

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