How to implement pagination correctly for nodejs?
问题 I use the ORM sequelize and the postgresql database. And I want to implement pagination. Using the MongoDB database, pagination is performed this way. module.exports.getBySprOilfieldId = async function (req, res) { try { const query = { where: { spr_oilfields_id: req.params.spr_oilfields_id } } const sprwellplatforms = await SprWellplatforms.findAll(query) .skip(+req.query.offset) .limit(+req.query.limit) res.status(200).json(sprwellplatforms) } catch(e) { errorHandler(res, e) } } But since I