How can you achieve transaction and locking in MongoDB?

Technology CommunityCategory: MongoDBHow can you achieve transaction and locking in MongoDB?
VietMX Staff asked 3 years ago

To achieve concepts of transaction and locking in MongoDB, we can use the nesting of documents, also called embedded (or sub) documents. MongoDB supports atomic operations within a single document.