0.33.0 • Multiplatform is Experimental, $unwind, exclusions in $set and $project, capped collections and aggregation debug mode
BSON (Official)
- Display the BSON document being decoded when no Codec is found (01955256)
Drivers
- Added missing aggregation specializations (!292)
- Added
MongoAggregationPipeline.debug()(2efea338, 67d552a9) insertnow supports the optionsmaxTime(Multiplatform-only),ordered,bypassDocumentValidationandcomment(!295)insertnow throws rich exceptions (!301, !304)- Added support for creating capped collections (!297)
- Added support for document validation (!298)
- Simplified untyped access through
BsonDocument(!303)
Driver (Multiplatform)
- Improved the shutdown sequence (!280)
- Improved connection failures (857f4d62)
- Implemented Unified API (!299, !300)
DSL
Aggregations:
- Added $unwind (2d61c846)
- Added $arrayElemAt (18a1c37d)
- Field accesses now generate $getField and $arrayElemAt automatically (b98244cf)
- Removed the fake array in the string representation of Value (47114cbb)
- Added Value.unsafeCast() (cfca285d)
- Added Value.unsafeNonNull() (517f2ce7)
- Renamed Pipeline.reinterpret to Pipeline.unsafeCast (102d3e65)
- The $set stage now has an overload to set array elements (ea46d924)
- The $set and $group stages are now stricter about type safety (1013f81a, 7944e685)
- The $set and $project stages now support field exclusion via $$REMOVE (9661baec)
- Projections ($project and $set) automatically cast the pipeline if the type changes (19e9fb64)
- Created trigonometry & string operator overloads for non-nullable values (4df776a7, 70ad9074)
- Removed some ambiguous / overloads (02fca9c3)
- The $divide operator now requires explicit div spelling instead of just / (223ad3c8)
Options:
- Specify the behavior of $maxTimeMS with submillisecond timeouts (e9fd9402)
- The option holder classes have been renamed from WithOption to HasOption (db8f2589)
- Added a convenience overload for writeConcern (b93c2766)
Documentation
- Documented missing aggregation stages (51bed497)
- Decreased the visibility of the 'news' section in the site search
- Various corrections (2a89f430)
- Documented how to create a custom option (78073d1d)
Dependencies
- MongoDB Java driver 5.10.0