Skip to content

Function: ODataKey()

ODataKey(): PropertyDecorator

Defined in: packages/core/src/decorators/odata-key.decorator.ts:10

@ODataKey() — marks a property as part of the entity key. Can be applied to multiple properties for composite keys.

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

Returns

PropertyDecorator