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

Use BsonExtraElements annotation in ChangeStreamDocument

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 4.7.0
    • None
    • Change Streams
    • None
    • Fully Compatible
    • Needed

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: