Skip to main content

EntityId Decorator

Decorates a property which points to another entity by ID. This custom decorator is needed because we do not know the data type of the ID column until runtime, when we have access to the configured EntityIdStrategy.

Signature
function EntityId(options?: IdColumnOptions): void

Parameters

options

parameterIdColumnOptions
Was this chapter helpful?
Report Issue
Edited Feb 4, 2026·Edit this page