MongoDB / Mongoose: Get document count of query before awaiting it

后端 未结 0 1866
别那么骄傲
别那么骄傲 2021-02-04 07:05

I use .skip() and .limit() to paginate my MongoDB query. But I want to read the full amount of documents before I cut them by these functions.

  • Yes, I could await th
相关标签:
回答
  • 消灭零回复
提交回复
热议问题