Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-2239

Refactor ChangeStreamDocument to be a BsonDocumentBackedClass

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.7.0
    • Component/s: Operations
    • Labels:
      None

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: