I have 50000 documents in my Cosmos db collection. Using mongo shell, I want to remove a field from all documents and when i run the update command. Below is the output.
WriteResult({ "nMatched" : 9941, "nUpserted" : 0, "nModified" : 9941 })
Seems like update is not applied to all the documents even though all documents contain the field to remove.
If i run update command again few more documents are updated.
Any idea why this is happening. Is there a way to update all documents at once?