Skip to main content
Version: Next

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 ? 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)
  • 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

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