interface DatabaseUpdateOperation {
    _result?: (string | object)[];
    _updateData?: Record<string, object>;
    action: "update";
    broadcast: boolean;
    diff?: boolean;
    modifiedTime?: number;
    noHook?: boolean;
    pack: null | string;
    parent?: null | Document<object, DocumentConstructionContext>;
    parentUuid?: null | string;
    recursive?: boolean;
    render?: boolean;
    updates: object[];
}

Properties

_result?: (string | object)[]

Used internally by the server-side backend

_updateData?: Record<string, object>

Used internally by the server-side backend

action: "update"

The action of this database operation

broadcast: boolean

Whether the database operation is broadcast to other connected clients

diff?: boolean

Difference each update object against current Document data and only use differential data for the update operation

modifiedTime?: number

The timestamp when the operation was performed

noHook?: boolean

Block the dispatch of hooks related to this operation

pack: null | string

A compendium collection ID which contains the Documents

parent?: null | Document<object, DocumentConstructionContext>

A parent Document within which Documents are embedded

parentUuid?: null | string

A parent Document UUID provided when the parent instance is unavailable

recursive?: boolean

Merge objects recursively. If false, inner objects will be replaced explicitly. Use with caution!

render?: boolean

Re-render Applications whose display depends on the created Documents

updates: object[]

An array of data objects used to update existing Documents. Each update object must contain the _id of the target Document