Answers for "Limits and Pagination in Sequelize"

0

Limits and Pagination in Sequelize

// Fetch 10 instances/rows
Project.findAll({ limit: 10 });

// Skip 8 instances/rows
Project.findAll({ offset: 8 });

// Skip 5 instances and fetch the 5 after that
Project.findAll({ offset: 5, limit: 5 });
Posted by: Guest on June-14-2021

Browse Popular Code Answers by Language