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

> **getEntitySetName**(`target`): `string` | `undefined`

Defined in: [decorators/odata-entity-set.decorator.ts:17](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/decorators/odata-entity-set.decorator.ts#L17)

Read the entity set name set via @ODataEntitySet(), or undefined if not set

## Parameters

### target

`object`

## Returns

`string` | `undefined`
