Pagination in Nodejs using Mongoose (return totalPages, totalCount & More)

preview_player
Показать описание
We're gonna explore 2 different ways of doing pagination using mongoose.
In case you just want to watch the simpler way , you can watch from 0:00- 7:30

If this video was helpful, please leave a Like & Subscribe, it would be much appreciated !

Timestamps:
-----------------------

0:00- Introduction
0:11- Final Output
0:27- Showing the project
1:25- Pagination Basics
3:37- Starting from Page 0 vs Page 1
5:34- Finalizing the pagination
6:40- Analyzing the result
7:30- A Better way of Paginating!
8:02- Adding Default Pagination Values
8:50- Introducing Aggregations
9:25- Adding An Aggregation
11:00- Getting the Same Output, Using Aggregations
11:30- Introducting $facet
13:00- Adding the metaData aggregation (pageNumber, totalPages, totalDocuments)
19:00- Fixing the output
22:00- Outro
Рекомендации по теме
Комментарии
Автор

Nice, very informative. I learned a lot. I hope you also included the front end part of pagination. Thanks.

blpxbdt
Автор

That was an informative video, bro! I liked how you increased the level of complexity gradually in the video to cater for each use case. Keep going!

basemmostafa
Автор

Really helpful and informative. Keep up the good work!

MohammadAlKayyali-cf
Автор

This is exactly what i was looking for thank you for the clear explanation !

nadimchaftari