What should I do when I only call up documents in a certain section in Mongoose collection?

Asked 2 years ago, Updated 2 years ago, 128 views

Node.js + Mongoose is working. I'm trying to retrieve documents from a few to a few while I'm doing pagination.

I've thought about how to find it with for loop, but I think it's too ignorant;; Is there a better way?

mongoose node.js

2022-09-22 11:02

1 Answers

I'm asking myself Haha It's implemented with limit() and skip() This is the stackoverflow page that you referred to.

http://stackoverflow.com/a/14822142


2022-09-22 11:02

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.