title: How to lock a Collection in MongoDB
body: <p>I have a collection in my database</p>
  
  <p>1.I want to lock my collection when the User Updating the Document</p>
  
  <p>2.No operations are Done <strong>Expect Reads</strong> while Updating the collection for another Users</p>
  
  <p>please give suggestions how to Lock the collection in MongoDB</p>
  
  <p>Best Regards</p>
  
  <p>GSY </p>