Mongo
Mongo
Update:
The update operation uses $set operation to update the current value.
To replace the entire content of a document except for the _id field, pass an entirely new
document as the second argument to db.collection.replaceOne().
When replacing a document, the replacement document must contain only field/value pairs.
Do not include update operators expressions.
Delete: