📜  Sequelize 中的限制和分页 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:02.633000             🧑  作者: Mango

代码示例1
// 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 });