'How to listen to mongoDb collection change and save record in new collection

I have collection shop,whenever change is made in shop, a record to be created of what was changed and by which user and should be inserted into new collection.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source