Add method to provide sorting direction to sort array aggregation.
Related to: #4929
Original Pull Request: #4935
Signed-off-by: Nathan McDonald <nathan.mcdonald@uk.ey.com>
- Added methods `byValueAscending()` and `byValueDescending()` to the SortArray class
to support sorting simple array types (e.g., integers, strings) in ascending and descending order.
- Updated tests to verify the correct functionality of sorting arrays by value.
- Refactored SortArray to handle sorting of simple types without requiring a property for sorting.
For more details, refer to: https://www.mongodb.com/docs/manual/reference/operator/aggregation/sortArray/Resolves: #4929
Original Pull Request: #4943
Signed-off-by: Ranzy Blessings <ranzyblessings.inbox@gmail.com>
This commit fixes an issue where id properties annotated with MongoId had not been converted into the desired target type when inserting a collection of objects instead a single one.
Resolves: #4944
Original pull request: #4945
This commit decouples queryable encryption from explicit encryption and introduces the Queryable annotation to represent different query types like range and equality.
Additionally it removes value conversion from range encryption and fixes update mapping of range encrypted fields.
Original Pull Request: #4885
This change makes sure basic update appends values to operations instead of overriding them. This change aligns the behaviour with Update and fixes issues where using the Update annotation with versioned entities can lead to loss of update information.
Closes: #4918
Original pull request: #4921
We now allow configuring the default representation for BigDecimal and BigInteger values, still defaulting to string. BigDecimal can be configured to use Decimal128 by default.
Closes: #3444
Original pull request: #4916
Allow using sort parameter from the query for template replace as well as bulk update & replace operations.
We now also mapped fields used in sort to the domain type considering field annotations.
Also updated javadoc and reference documentation.
Original Pull Request: #4888
Stop testing against MongoDB server versions that are EOL already.
MongoDB 4.4: EOL Feb. 2024
MongoDB 5.0: EOL Oct. 2024
Original pull request: #4893Closes#4529