I have about 2 months trying to get something done, and I can’t get it… doesn’t mean I won’t learn, it means this part I need it sooner than later while I get some more classes on this topic…
I need a sample code for pagination and global filtering for a collection from MongDB Atlas… and I need to present it on the fronted on a table structure with , and the options of next and previous page. I would like to do the filtering and pagination from the backend, and just present the results on the frontend.
The chart/s I am working can easily reach 700-800 items, maybe less, maybe more… I’ll be looking to throw about 100 items per page… if the user can change the number of items per page is great, but I can just leave set at 100…
Then… I also found this from MongoDB Atlas:
> #### WARNING
>
> Using `skip()` with large values (more than a few pages of results) is NOT recommended as the server scans the skipped range of documents in order to find the start of the requested document range. See [cursor.skip behaviour](https://docs.mongodb.com/manual/reference/method/cursor.skip/#behavior).
Anyway… where could I find somebody with the power of knowledge to help me with this thing???
And where can I get the knowledge to get it done by myself next time?