Extend update and delete change event with document pre-image
Hey,
it would be really helpful to extend update and delete change events with pre-image of the document.
Update event:
For update events we can add a lookup to get the fullDocument but we do not have any information how the document looked before the update was applied.
Delete events:
In case of delete change events the only information regarding the document is the "_id" of the deleted document. It would be great to have the fullDocument in the change event to use this for further actions.
Is an extension like this possible or even in development?
Best regards
Peter
7
votes
Peter
shared this idea
Hi all – this has been released. https://docs.mongodb.com/realm/triggers/database-triggers/