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 sortOptional timeoutThe method timeout override.
See TimeoutDescriptor for much more information.
Optional upsertOptional 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.
Represents the options for some generic
replaceOnecommand.Field
upsert - If true, perform an insert if no documents match the filter.
Field
sort - The sort order to pick which document to replace if the filter selects multiple documents.
Field
timeout - The timeout override for this method