PolymorphicRef
Index
Constructors
constructor
Parameters
discriminator: string
id: unknown
Returns PolymorphicRef
Properties
publicreadonlydiscriminator
publicid
Methods
toTuple
Returns
[discriminator, ...idValues]tuple suitable for column-level expansion.Returns unknown[]
Wrapper class for polymorphic relation reference data. Holds the discriminator value (type identifier) and the primary key value(s). Used internally to track polymorphic FK values before hydration.