how to add a $facet to get the total count in this c# mongodb pipeline?

前端 未结 0 610
无人及你
无人及你 2020-12-17 04:24

This is what I have to retrieve some Post objects. I want the total so the client can know how much is left for the pagination. I think I should use a $facet, but not really

相关标签:
回答
  • 消灭零回复
提交回复
热议问题