DATAMONGO-2048 - Add support for MongoDB 4.0 $convert aggregation operator.

We now support the following type conversion aggregation operators:

* $convert
* $toBool
* $toDate
* $toDecimal
* $toDouble
* $toInt
* $toLong
* $toObjectId
* $toString

Original pull request: #595.
This commit is contained in:
Christoph Strobl
2018-08-10 11:15:40 +02:00
committed by Mark Paluch
parent beced8184f
commit 4205516446
3 changed files with 921 additions and 0 deletions

View File

@@ -2099,6 +2099,7 @@ The MongoDB Aggregation Framework provides the following types of aggregation op
* Array Aggregation Operators
* Conditional Aggregation Operators
* Lookup Aggregation Operators
* Convert Aggregation Operators
At the time of this writing, we provide support for the following Aggregation Operations in Spring Data MongoDB:
@@ -2141,6 +2142,8 @@ At the time of this writing, we provide support for the following Aggregation Op
| Type Aggregation Operators
| `type`
| Convert Aggregation Operators
| `convert`, `toBool`, `toDate`, `toDecimal`, `toDouble`, `toInt`, `toLong`, `toObjectId`, `toString`
|===
* The operation is mapped or added by Spring Data MongoDB.