Тёмный

How to do pagination server-side 

Подписаться
Просмотров 23 тыс.
% 516

In this video we will learn how to do #pagination #server-side using #Nodejs and #mongodb using the #mongoose #ORM, though the logic can be applied to any #database like #sqlite, #mysql, #postgres, etc.
0:00 Introduction
3:47 Code
--------------------------------------------------------------------------
🚀Deploy apps: zeet.co/r/yourstruly
(One FREE project forever 😘)
--------------------------------------------------------------------------
📦FREE $100 credit @Digital Ocean: m.do.co/c/3208f08b3324
Subscribe: ru-vid.com
--------------------------------------------------------------------------
💵Support the channel:
Paypal: www.paypal.me/trulymittal
Patreon: www.patreon.com/trulymittal
--------------------------------------------------------------------------
⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. I've been using Kite for 6 months and I love it! www.kite.com/get-kite/?
--------------------------------------------------------------------------
======================
✔ Other useful Playlists
======================
#RestAPI (#NodeJS and MongoDB): ru-vid.com/group/PLdHg5T0SNpN3EoN3PEyCmPR42Ok_44OFT
#API Authentication using #JWT: ru-vid.com/group/PLdHg5T0SNpN0ygjV4yGXNct25jY_ue70U
#Firebase: ru-vid.com/group/PLdHg5T0SNpN2NimxW3piNqEVBWtXcraz-
Docker: ru-vid.com/group/PLdHg5T0SNpN0gFlL8AXvZdAHsvpkuW0Ba
MongoDB: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-liocKBCVJyw.html
Html/Css/Js: ru-vid.com/group/PLdHg5T0SNpN0saXVT9gfb2MESkiHG8YbP
Android: ru-vid.com/group/PLdHg5T0SNpN2cv8zhK-zQx2qXfJKap9kU
Challenges: ru-vid.com/group/PLdHg5T0SNpN20F2v0xYWeLRZtdehexzDi
#yoursTRULY #tutorial #howto #nodejs #android

Опубликовано:

 

18 янв 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 48   
@DTUSEM
@DTUSEM 2 года назад
I learnt it in 1 go. बहुत बढ़िया video है । Simple, clean, to the point explanation. You explain things very well. धन्यवाद 😊
@mafiacodes
@mafiacodes 2 года назад
It's my pleasure Subscribe Like Share
@soifriwaj2914
@soifriwaj2914 3 года назад
Amazing content. I have never worked on pagination but heard of it to be used in front end development.Good to know that it can be implemented in server side too👍👍
@mafiacodes
@mafiacodes 3 года назад
Glad it was helpful!
@nirajs.golhar7609
@nirajs.golhar7609 2 года назад
Yes , same brother! This is a good lesson to the point for beginner Thank you for the video
@ahlambeyoud1709
@ahlambeyoud1709 3 года назад
Thank you very clear and concise :) amazing content as usual you are gifted in making information easy to understand :) keep up your good work! 👍
@adarshchakraborty
@adarshchakraborty 2 года назад
We can also set the defaults like this right? const { page = 1, size = 10 } = req.query;
@mafiacodes
@mafiacodes 2 года назад
Yes
@nikhilelayath1407
@nikhilelayath1407 3 года назад
Amazing! short and right to the point! Thanks
@abhaysingh-pt7pz
@abhaysingh-pt7pz 3 года назад
very nice explanation of pagination, keep doing the great work
@zackOverflow
@zackOverflow 2 года назад
Thanks for this awesome tutorial, it's very helpful. short and precise. More power to you.
@mafiacodes
@mafiacodes 2 года назад
Glad it helped! Subscribe like share
@wazzadev7209
@wazzadev7209 2 года назад
Another very good tutorial
@andrewingombe4235
@andrewingombe4235 2 года назад
This is what I was looking for, thank you so much. What is your vscode theme?
@riskeys
@riskeys 3 года назад
Very clear and more importantly very useful. Thank you very much!
@parasarora7565
@parasarora7565 3 года назад
Love your videos, keep making!! Btw wanna ask u for a long time which vscode theme are you using??
@abhishekjangid4248
@abhishekjangid4248 3 года назад
and which font too
@mafiacodes
@mafiacodes 3 года назад
Snazzy operator theme and operator mono font
@abelmurua6980
@abelmurua6980 3 года назад
Thank you! Perfect tutorial
@codewithnws3544
@codewithnws3544 Год назад
is there any package for sending dummy users in mongodb with loadtest or something else?
@veedfriendforever5990
@veedfriendforever5990 3 года назад
good morning, Hello sir, I am working a project that require some permission that dose not provide normally so, want to know about device policy manager in describe details so please help if you? thank you
@aliadel1723
@aliadel1723 2 месяца назад
You are the best ♥
@jordyperez9969
@jordyperez9969 2 года назад
Thanks bro, thanks.
@mafiacodes
@mafiacodes 2 года назад
Subscribe like share
@ram_pednekar14
@ram_pednekar14 3 года назад
It will be best idea to show next about filtering and sorting too.
@mafiacodes
@mafiacodes 3 года назад
Filtering: it depends on a lot of things like what fields u want the filter on,,, Sorting: its really simple, u can simply add in a sort query like: User.find().sort({field: 1}) and 1 is for ascending and -1 is for descending, or using general MongoDB query u can do something like User.find(query, projection, {$sort: { field1: 1}, {field2: -1}}) which firstly sorts by field1 in ascending order and then by field2 in descending...
@DeepakJangra-up8ek
@DeepakJangra-up8ek 3 года назад
Hey Truly, I have used the same technique in production but I am concerned about only 1 thing. Let's assume the data is very sensitive like payment records and you request page 1 and then in backend 1 entry is added and then you fetch page 2. you will see the last result of first page on the first of second page, i.e. repitation of docs. Is there any way to fix this?
@thenoobcoders618
@thenoobcoders618 3 года назад
Hey! how to run find queries and pagination queries at same time in URL?
@divyanshusah2809
@divyanshusah2809 3 года назад
Thank u very much 🥰🥰
@technoinfoworldwide2329
@technoinfoworldwide2329 3 года назад
Hello sir, what would be the logic for login.js post method for already provided external api and how to integrate in login.ejs file to render in browser.can you please make a tutorial on it or share the logic ?
@abhishekjangid4248
@abhishekjangid4248 3 года назад
Love your videos....thank you so much. Btw which font do you use.
@mafiacodes
@mafiacodes 3 года назад
operator mono
@abhishekjangid4248
@abhishekjangid4248 3 года назад
@@mafiacodes Thank you so much
@manikandand2541
@manikandand2541 2 года назад
thank you so much sir
@tharakadissanayake301
@tharakadissanayake301 3 года назад
Thankyou so much
@vetri09
@vetri09 3 года назад
great video!
@mafiacodes
@mafiacodes 3 года назад
subscribe like share
@ashadulmridha6551
@ashadulmridha6551 2 года назад
Amazing
@ahsinflutter
@ahsinflutter 3 года назад
You are awesome 😊❤️🙂😘🙂😘
@mafiacodes
@mafiacodes 3 года назад
subscribe like share
@sanitbandekar
@sanitbandekar 3 года назад
sir android par kab aayega ??
@dybala1044
@dybala1044 3 года назад
How To Add next page button dynamic
@bluediu1714
@bluediu1714 3 года назад
thank you ❤❤
@GarTheStar
@GarTheStar 3 года назад
that was really good
@ellsonmendesYT
@ellsonmendesYT 3 года назад
amazing
@samuelnmeje
@samuelnmeje 2 года назад
beautiful
@Joe-ka
@Joe-ka 3 года назад
i love you man! #noHomo finally i understood this stupid concept.
@arnabsahoo2251
@arnabsahoo2251 3 года назад
Next make a video on Video streaming like Netflix using nodejs. if it possible make video on production-ready video streaming service in nodejs.