ChangeSet <T>
Index
Constructors
constructor
Type parameters
- T: object
Parameters
entity: T
type: ChangeSetType
payload: EntityDictionary<T>
meta: EntityMetadata<T>
Returns ChangeSet<T>
Properties
collection
publicentity
publicmeta
name
optionaloriginalEntity
publicpayload
persisted
rootName
optionalschema
publictype
Methods
getPrimaryKey
Parameters
object: boolean = false
Returns null | (T extends { [PrimaryKeyProp]?: PK } ? PK extends keyof T ? ReadonlyPrimary<UnwrapPrimary<T[PK]>> : PK extends keyof T[] ? ReadonlyPrimary<PrimaryPropToType<T, PK>> : PK : T extends { _id?: PK } ? string | ReadonlyPrimary<PK> : T extends { uuid?: PK } ? ReadonlyPrimary<PK> : T extends { id?: PK } ? ReadonlyPrimary<PK> : T)
getSerializedPrimaryKey
Returns null | string