scalareactivemongo

How can perform facet aggregation in ReactiveMongo with playframework?


I am trying to run $facet aggregation in order to get documents according to $match with $skip and the count of matching documents.

I found there is no $facet aggregation in ReactiveMongo. How can I do this in my playframework 2.7 app?


Solution

  • Any aggregation stage can be written using PipelineOperator (if no convenient function provided).