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

> **EdmType**(`options`): `PropertyDecorator`

Defined in: [decorators/edm-type.decorator.ts:19](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/decorators/edm-type.decorator.ts#L19)

@EdmType() — override the EDM primitive type for a property.
Use when the TypeScript type cannot be automatically mapped, or when
precision/scale/maxLength constraints are needed (e.g., Edm.Decimal).

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

## Parameters

### options

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

## Returns

`PropertyDecorator`
