How to store the details about modified documents in another collection in Mongodb?
<p>I need to store the details of the modified fields in a collection and store those details in the another collection. For example if i update the field "Status" the new value and old value should be stored in another collection along with the _id of the modified documents. Is it possible to do it? I know that we cannot use Trigger in MongoDB. I tried to used log files for it. But not able to get the old value of updated document using it. Please let me know the possible way. I'm very much stuck here. </p>