when using sequelize , why count(*) is sent always code example
Example 1: populating db through sequilize adding a book
Model.findAll({
attributes: ['foo', 'bar']
});
Example 2: count using sequelize.fn
exports.getMinPrice = () => Item.findAll({ attributes: [[sequelize.fn('min', sequelize.col('price')), 'minPrice']], });