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

Refactor ChangeStreamDocument to be a BsonDocumentBackedClass

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.7.0
    • Affects Version/s: 2.5
    • Component/s: Operations
    • None

      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.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: