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

> **getSearchableProperties**(`target`): `string`\[]

Defined in: [decorators/odata-searchable.decorator.ts:30](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/decorators/odata-searchable.decorator.ts#L30)

Get the list of searchable property names for a given entity class.
Returns an empty array if no properties are decorated with @ODataSearchable().

## Parameters

### target

new (...`args`) => `unknown`

## Returns

`string`\[]
