the context
the collection to update
the document to insert or replace
options to apply
Optional
condition?: CompositeConditionan optional conditional expression that must be satifisfied for the update to proceed
the inserted / replaced value
when the collection is not found
Generated using TypeDoc
Insert or replace a value in a collection.
This operation differs from [[insert]] in that it does not check for the existence of a document with the same
_id
value - it will replace whatever is there.