sequelize where op or op and code example
Example 1: sequelize and
{ where: { [Op.and]: [{ Col1: val1 }, { Col2: val2 }]} }
Example 2: op in sequelize
//First method
// selecting authorityId :12 or 13
model.findAll({
where: {
[Op.or]: [
{ authorId: 12 },
{ authorId: 13 }
]
}
});