How do you Update a Document?
The MongoDB shell provides the following methods to update documents in a collection:
To update a single document, use db.collection.updateOne()
To update multiple documents, use db.collection.updateMany()
To replace a document, use db.collection....
rajamuhammadasher.com1 min read