DATAMONGO-1491 - Add support for $filter (aggregation).

We new support $filter in aggregation pipeline.

Aggregation.newAggregation(Sales.class,
	Aggregation.project()
		.and(filter("items").as("item").by(GTE.of(field("item.price"), 100)))
		.as("items"))

Original pull request: #412.
This commit is contained in:
Christoph Strobl
2016-10-25 15:43:55 +02:00
committed by Mark Paluch
parent 578441ee9f
commit 2985b4ca3d
13 changed files with 706 additions and 23 deletions

View File

@@ -1686,7 +1686,7 @@ At the time of this writing we provide support for the following Aggregation Ope
| eq (*via: is), gt, gte, lt, lte, ne
| Array Aggregation Operators
| size, slice
| size, slice, filter
| Conditional Aggregation Operators
| cond, ifNull