Mongodb – Add a new field to object while iterating through its collection
In my application, we have mongo db for data persistence. As part of some changes, one document is modified and we are adding a new field to it. I need to write a update job in Java. For example let's…