ChangeSet <T>
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
entity: T
type: ChangeSetType
payload: EntityDictionary<T>
meta: EntityMetadata<T, EntityCtor<T>>
Returns ChangeSet<T>
Properties
publicentity
publicmeta
optionaloriginalEntity
publicpayload
persisted
rootMeta
optionalschema
publictype
Methods
getPrimaryKey
Parameters
object: boolean = false
Returns null | (T extends { [PrimaryKeyProp]?: PK } ? PK extends undefined ? Omit<T<T>, typeof PrimaryKeyProp> : 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 { id?: PK } ? ReadonlyPrimary<PK> : T extends { uuid?: PK } ? ReadonlyPrimary<PK> : T)
getSerializedPrimaryKey
Returns null | string