hallo, im looking for a method to catch the data which was the key for a event.
i want to have a function. every time a data is c/u/d in a collection, i want to know which one and from who. so that i could have a method which create a notification with this information for example: user: "hgkuhgseg" updated the data "gesges" and so on.
TL;DR
You can use Events to trigger a function on a DB update. The `req.body` will contain an array with the updated data. If you want to capture the key data for an event, you can create a function that creates a notification with the information of the user and the updated data.