Hi guys,I started my experience with node, express and mongo early this year and I have a quick question about paginating some results in a simple web app I’m building.Case:I have a comment model related as a reference to a post model.To paginate my posts results I’m using mongoose-paginate with satisfactory performance in the show page.I also need to paginate my comment results for each post.I get them in the backend using mongoose “populate” in my post query. Question: How can I use mongoose-paginate when populating comments to have pagination results in ejs template? Hope this is clear. Any help is much appreciated.Regards,
Submitted November 09, 2018 at 12:48PM by bstrd10
No comments:
Post a Comment