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

> **ODataExclude**(): `PropertyDecorator`

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

@ODataExclude() — marks a property to be excluded from the OData EDM.
The property will not appear in $metadata and will be stripped from responses.

Zero imports from typeorm, @nestjs/common, or any ORM. Pure reflect-metadata.

## Returns

`PropertyDecorator`
