Skip to main content
Version: 6.4

ChangeSet <T>

Index

Constructors

constructor

Properties

collection

collection: string

publicentity

entity: T

publicmeta

name

name: string

optionaloriginalEntity

originalEntity?: EntityData<T>

publicpayload

payload: EntityDictionary<T>

persisted

persisted: boolean

rootName

rootName: string

optionalschema

schema?: string

publictype

Methods

getPrimaryKey

  • getPrimaryKey(object?: boolean): 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)
  • 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

  • getSerializedPrimaryKey(): null | string
  • Returns null | string