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

> **annotateEntities**(`items`, `ctx`): `Record`<`string`, `unknown`>\[]

Defined in: [response/odata-annotation.builder.ts:104](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/response/odata-annotation.builder.ts#L104)

Annotate an array of entity objects with OData v4 metadata annotations.

Applies `annotateEntity` to every item in the array and returns a new array.
Does not mutate the input array or any items.

## Parameters

### items

`Record`<`string`, `unknown`>\[]

The array of entity objects to annotate

### ctx

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

The annotation context

## Returns

`Record`<`string`, `unknown`>\[]
