Friday, 26 May 2017

Limit number of mongoldb objects per page and add pagination

I'm creating a blog app using node.js and express with mongoDB as my database. All is up and running and working fine, however on the page which lists the blogs, I need to ensure that only a maximum of, say, 5 appear on each page and then I want to add pagination to scroll to older blogs. I've tried searching online how to do this but cannot find any explanation. Can anyone help?



via DaveB1

No comments:

Post a Comment