3.1.4 of the server brings the new $project-stage aggregate expression "$filter", allowing for filtering out elements of arrays which are sub-elements of documents.
This works much like $elemMatch in find() - but in an aggregation pipeline.
- depends on
-
SERVER-17943 add $filter expression to $project to work with $map and $reduce
- Closed
- is duplicated by
-
CSHARP-1405 add $filter expression to $project to work with $map and $reduce
- Closed