Refactor ChangeStreamDocument to be a BsonDocumentBackedClass

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 2.7.0
    • Affects Version/s: 2.5
    • Component/s: Operations
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Stam
            Reporter:
            Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: