Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-4580

Use BsonExtraElements annotation in ChangeStreamDocument

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Change Streams
    • Labels:
      None
    • Fully Compatible
    • Needed

      We should use the BsonExtraElements annotation on a new property added to ChangeStreamDocument, so that ChangeStreamDocument can represent new fields aded by the server even with older drivers.

      Once we do that the unified test "The test "Test projection in change stream returns expected fields" could be implemented using ChangeStreamDocument rather than BsonDocument.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: