[CSHARP-2239] Refactor ChangeStreamDocument to be a BsonDocumentBackedClass Created: 16/Apr/18 Updated: 28/Oct/23 Resolved: 23/May/18 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Operations |
| Affects Version/s: | 2.5 |
| Fix Version/s: | 2.7.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
ChangeStreamDocument is a type safe wrapper around the change stream documents returned by the server for the $changeStream pipeline operator. As currently implemented it breaks when the server adds new fields (like it recently did when it added the "clusterTime" field to the change stream documents). We can make ChangeStreamDocument resilient to server changes by deriving it from BsonDocumentBackedClass. |
| Comments |
| Comment by Githook User [ 23/May/18 ] |
|
Author: {'username': 'rstam', 'name': 'rstam', 'email': 'robert@robertstam.org'}Message: |