1//First method
2// selecting authorityId :12 or 13
3model.findAll({
4 where: {
5 [Op.or]: [
6 { authorId: 12 },
7 { authorId: 13 }
8 ]
9 }
10});
1 exports.getMinPrice = () => Item.findAll({ attributes: [[sequelize.fn('min', sequelize.col('price')), 'minPrice']], });