We want to use MongoDB Atlas triggers when the user’s balance gets updated. We have implemented triggers for that, but when the user’s balance gets updated, we get an updated document in the trigger’s event log. So is that any way that in the update trigger we get both the previous document and new document? Because we want to do some operation based on the old document.
Hey Viral - have you looked into Document Preimages for Triggers?
This is a relatively new feature and docs for Atlas are coming soon (identical Realm docs are here) - they give you the ability to work with what a document looked like before the Update, Replace, or Delete Operation.