Skip to main content

EventStorePartialUpdated

@webda/core


Interface: EventStorePartialUpdated<T>

Defined in: packages/core/src/stores/store.ts:92

Event called after partial update of an object

Type Parameters​

T​

T extends Model = Model

Properties​

object_id​

object_id: PrimaryKey<any>

Defined in: packages/core/src/stores/store.ts:96

Object uuid


partial_update​

partial_update: object

Defined in: packages/core/src/stores/store.ts:108

Info on the update

addItem?​

optional addItem?: object

Add item to a collection

addItem.index​

index: number

Index to add

addItem.property​

property: string

Collection name

addItem.value​

value: any

Item to add

deleteAttribute?​

optional deleteAttribute?: string

deleteItem?​

optional deleteItem?: object

Delete an item from collection

deleteItem.index​

index: number

Index in the collection

deleteItem.property​

property: string

Collection name

increments?​

optional increments?: object[]

If incremental update

patch?​

optional patch?: any

If this is a patch


store​

store: Store<any>

Defined in: packages/core/src/stores/store.ts:100

Emitting store


updateDate?​

optional updateDate?: Date

Defined in: packages/core/src/stores/store.ts:104

Update date