interface DatabaseUpdateOperation {
    broadcast: boolean;
    updates: object[];
    diff: boolean;
    modifiedTime: number;
    recursive: boolean;
    render: boolean;
    noHook: boolean;
    parent: any;
    pack: string;
    parentUuid: string;
    _result: (string | object)[];
}

Properties

broadcast: boolean

Whether the database operation is broadcast to other connected clients

updates: object[]

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

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

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

noHook: boolean

Block the dispatch of hooks related to this operation

parent: any

A parent Document within which Documents are embedded

pack: string

A compendium collection ID which contains the Documents

parentUuid: string

A parent Document UUID provided when the parent instance is unavailable

_result: (string | object)[]

An alias for 'updates' used internally by the server-side backend