OP en séquelle
//First method
// selecting authorityId :12 or 13
model.findAll({
where: {
[Op.or]: [
{ authorId: 12 },
{ authorId: 13 }
]
}
});
abhi
//First method
// selecting authorityId :12 or 13
model.findAll({
where: {
[Op.or]: [
{ authorId: 12 },
{ authorId: 13 }
]
}
});
// second method
// selecting authorityId :12 or 13
model.findAll({
where: {
authorId: {
[Op.or]: [12, 13]
}
}
});