In MongoDB, a write operation is atomic on the level of a single document, even if the operation modifies multiple embedded documents within a single document. Multi-Document Transactions When a single write operation (e.g. db.collection.updateMany()) modifies multiple documents, the modification of each document is atomic, but the operation as a whole is not atomic. When performing multi-document