[JAVA-4580] Use BsonExtraElements annotation in ChangeStreamDocument Created: 18/Apr/22 Updated: 28/Oct/23 Resolved: 23/May/22 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Change Streams |
| Affects Version/s: | None |
| Fix Version/s: | 4.7.0 |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Documentation Changes: | 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. |
| Comments |
| Comment by Githook User [ 23/May/22 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}Message: Support extra elements in ChangeStreamDocument (#949)
|