Skip to main content
Version: 5.9

ChangeSet <T>

Index

Constructors

constructor

  • new ChangeSet<T>(entity: T, type: ChangeSetType, payload: EntityDictionary<T>, meta: EntityMetadata<T>): ChangeSet<T>
  • Type parameters

    • T

    Parameters

    • entity: T
    • type: ChangeSetType
    • payload: EntityDictionary<T>
    • meta: EntityMetadata<T>

    Returns ChangeSet<T>

Properties

collection

collection: string

publicentity

entity: T

publicmeta

meta: EntityMetadata<T>

name

name: string

optionaloriginalEntity

originalEntity?: EntityData<T>

publicpayload

payload: EntityDictionary<T>

persisted

persisted: boolean

rootName

rootName: string

optionalschema

schema?: string

publictype

type: ChangeSetType

Methods

[custom]

  • [custom](depth: number): string
  • Parameters

    • depth: number

    Returns string

getPrimaryKey

  • getPrimaryKey(object?: boolean): null | Primary<T>
  • Parameters

    • object: boolean = false

    Returns null | Primary<T>

getSerializedPrimaryKey

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