Sequelize ORM Lecture 12 | Implement Pagination using sequelize

preview_player
Показать описание
I this lecture you will learn how to implement pagination using sequelize and you will also learn some utility functions provided by sequelize that will make your life easy !
Рекомендации по теме
Комментарии
Автор

most simplest and easy to understand thanks man

codewithedraak
Автор

Please add how to pass page and items per page data from postman and parse it in backend

dhamikauser
Автор

How can we implement cursor based pagination using Sequelize in say node or express

dilshansandhu
Автор

Thanks but not completed let me show you something first declare a variable above findAll() like:
const page = req.query.page;
Product.findAll({
limit: 2,
offset: (page - 1) * 2,
}).then((products) => {
res.render("shop/index", {
prods: products,
pageTitle: "Shop",
path: "/",
});
})
.catch((err) => {
console.log(err);
});
};

😊

shehryaryaqoob
join shbcf.ru