Spring Data MongoDB examples
aggregation-basic: The first example you should look at if you want to learn how to build an aggregation query with Spring. It builds a basic pipeline with match+group+project steps.
- Blog post related to this project: http://xpadro.com/2016/04/data-aggregation-with-spring-data.html
aggregation-nested-result: This project shows how to use nested method in projection phase in order to structure the output result of the aggregation query. In this way, you can avoid post-processing the result to a more suitable Java structure.
- Blog post related to this project: http://xpadro.com/2016/05/data-aggregation-spring-data-mongodb.html