Type alias CollectionReplaceOneOptions

CollectionReplaceOneOptions: GenericReplaceOneOptions

Represents the options for the replaceOne command.

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

See

Collection.replaceOne