Op.notIn code example
Example 1: sequelize .all()
yourTableModel.findAll({
//optional filters
where: {},
raw: true,
})
Example 2: in in sequelize
await Tag.findAll({
where: {
id: {
[Sequelize.Op.in]: [1, 2, 3, 4]
}
}
});
yourTableModel.findAll({
//optional filters
where: {},
raw: true,
})
await Tag.findAll({
where: {
id: {
[Sequelize.Op.in]: [1, 2, 3, 4]
}
}
});