MongoDB Shell
mongosh methods for collections, cursors and databases, plus query, update and aggregation operators.
Collection
Read
Write
- db.collection.insertOne()
- db.collection.insertMany()
- db.collection.updateOne()
- db.collection.updateMany()
- db.collection.replaceOne()
- db.collection.deleteOne()
- db.collection.deleteMany()
- db.collection.findOneAndUpdate()
- db.collection.findOneAndReplace()
- db.collection.findOneAndDelete()
- db.collection.bulkWrite()