[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:
Duplicate
is duplicated by CSHARP-2241 Add clusterTime property to static ty... Closed

 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: CSHARP-2239: Refactor ChangeStreamDocument to be a BsonDocumentBackedClass.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/2a79ee42798eb0e63c43ad2a45e79d9602e36a41

Generated at Wed Feb 07 21:41:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.