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

Refactor ChangeStreamDocument to be a BsonDocumentBackedClass

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 2.7.0
    • 2.5
    • Operations
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: