Need total count in aggregation response

In my project I am using aggregation, I have added some condition in match and setup the limit and skip in aggregation, So in the response I want the total matched document count, how many pages are their(if I set a page count 10 then it will show me 10 elements in per api response) and current page matched data.

Hello @Golu_Rajak,

For pagination Refer to this post,

1 Like

Thank you @turivishal

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.