Mongodb Change Stream get previous document snapshot

I just realise that there is no way to get the previous snapshot of the document.
Before using Mongodb I have used Firebase wherein using Cloud Firestore Triggers you get both previous and current documents.

Thank you

Hi @Akash_Kumar6,

I appreciate your frustration, however there are more constructive ways to share your feedback and publicly engage with other community members. Please review our Community Code of Conduct for expectations around community participation including positive and respectful communication.

I won’t ask you to upvote or watch the feature request to Extend update and change events with document pre-image as this was completed last year and available in MongoDB Realm Database Triggers (which are analogous to the Firebase solution you referenced).

I would note that product signals like feature requests and upvotes are important for the product planning process, and are the expected path to help our team understand which features are of most interest to end users.



Hi, @Stennie,

Thanks for your answer.
Is there any update on when we can get the same feature in Change Stream?


Hi @Akash_Kumar6 , the pre- and post-update snapshots of the document in Change Streams are currently planned to be released in MongoDB 6.0


Thanks for the update @Katya.