Optional maxThis temporary error-ing property exists for migration convenience, and will be removed in a future version.
maxTimeMS option is no longer available; the timeouts system has been overhauled, and timeouts should now be set using timeout, and defaults in timeoutDefaults. You may generally Ctrl+R replace maxTimeMS with timeout to retain the same behavior.Optional sortThe order in which to apply the update if the filter selects multiple documents.
If multiple documents match the filter, only one will be updated.
Defaults to null, where the order is not guaranteed.
null
Optional timeoutThe method timeout override.
See TimeoutDescriptor for much more information.
Optional upsertIf true, perform an insert if no documents match the filter.
If false, do not insert if no documents match the filter.
Defaults to false.
false
Optional vectorThis temporary error-ing property exists for migration convenience, and will be removed in a future version.
sort: { $vector: [...] } instead.Optional vectorizeThis temporary error-ing property exists for migration convenience, and will be removed in a future version.
sort: { $vectorize: '...' } instead.
Overview
The options for a generic
updateOnecommand performed on the Data API.Example
See