Skip to content

routier-collection


routier-collection / plugins/mongodb/src / MongoUpdate

Type Alias: MongoUpdate

MongoUpdate = object

Defined in: plugins/mongodb/src/driver.ts:21

One update, already resolved to the document it targets.

Properties

filter

readonly filter: MqlFilter

Defined in: plugins/mongodb/src/driver.ts:27

Selects the document, and for a schema with a concurrency token also carries the expected value. A filter that matches nothing is how a lost race is detected — the plugin turns it into an OptimisticConcurrencyError.


set

readonly set: Record<string, unknown>

Defined in: plugins/mongodb/src/driver.ts:29

The $set payload: what changed, in document terms.

Released under the MIT License.