1Post.findAll({
2 where: {
3 [Op.or]: [{authorId: 12}, {authorId: 13}]
4 }
5});
6// SELECT * FROM post WHERE authorId = 12 OR authorId = 13;
7
8Post.findAll({
9 where: {
10 authorId: {
11 [Op.or]: [12, 13]
12 }
13 }
14});
15// SELECT * FROM post WHERE authorId = 12 OR authorId = 13;
16
1"SELECT * FROM Student WHERE LastName='Doe' OR FirstName in ("John","Jane") OR Age>18"
2