I am wondering if the following is achievable in MongoDB. I am building a simple REST API and one of the functionality's it will offer is to update a field in multiple documents using Mongoose and the updateMany() function.
Reading this: https://docs.mongodb.com/manual/core/read-isolation-consistency-recency/#read-uncommitted-and-multiple-document-write
I came to believe that it is not possible to lock-out any reads from happening during the updating of the documents by updateMany(). Is this correct or is it possible to block all read operations when this function is called until it finishes?