[SERVER-48186] Get fullDocument and before/after within Change Stream Events Created: 13/May/20  Updated: 06/Dec/22  Resolved: 15/May/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Jascha Brinkmann Assignee: Backlog - Triage Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-36941 Option to provide "before image" with... Closed
Assigned Teams:
Server Triage
Participants:

 Description   

I am using Change Stream Events to get notified whenever a document is updated/deleted/inserted in a database collection.

But they would be a lot more useful if I they would include the "previous" state of a document. Meaning that within a "deleted" event I could still access the contents of the deleted document and in an "updated" event I could get both versions (before and after) of an updated document.

I am aware that the "updateDescription" describes the keys which have been changed and the latest value, but they don't include what the value was previously.

I got the idea by working with the Document Database Firebase Firestore before. Within their updated/deleted/inserted events they do include both the "before" and "after" state for deleted/updated/created events. (Of course, in the case of deleted and in the case of created the after/before is empty respectively)



 Comments   
Comment by Carl Champain (Inactive) [ 15/May/20 ]

Hi hello@growtheme.com,

Thanks for the report.
I believe this is being worked on in SERVER-36941, so I'm going to close this ticket as a duplicate.

Kind regards,
Carl

Generated at Thu Feb 08 05:16:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.