sequelize findall vs findandcountall code example
Example 1: sequelize .all()
yourTableModel.findAll({
//optional filters
where: {},
raw: true,
})
Example 2: sequelize max
exports.getMinPrice = () => Item.findAll({ attributes: [[sequelize.fn('min', sequelize.col('price')), 'minPrice']], });