How can you achieve transaction and locking in MongoDB? Technology Community › Category: MongoDB › How can you achieve transaction and locking in MongoDB? 0 Vote Up Vote Down VietMX Staff asked 4 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.