ChangeSet <T>
Index
Constructors
constructor
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<T> ? ReadonlyPrimary<UnwrapPrimary<T<T>[PK<PK>]>> : PK extends keyof T<T>[] ? ReadonlyPrimary<PrimaryPropToType<T<T>, PK<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