Interface UpdateManyOptions

Represents the options for the updateMany command.

Field

upsert - If true, perform an insert if no documents match the filter.

Field

maxTimeMS - The maximum time to wait for a response from the server, in milliseconds.

interface UpdateManyOptions {
    maxTimeMS?: number;
    upsert?: boolean;
}

Hierarchy (view full)

Properties

Properties

maxTimeMS?: number

The maximum time to wait for a response from the server, in milliseconds.

upsert?: boolean

If true, perform an insert if no documents match the filter.

If false, do not insert if no documents match the filter.

Defaults to false.

Default Value

false