I trying get all users by provided emails using where clause and $or in sequelize.
So i created query from my emails array for multiple where like this:
[ { email: '[email protected]' }, { email: '[email protected]' } ]
Then i try to get it in many way for example like that:
const allExistedUsers = await User.findAll({
where: { $or: multileWhere }
});
According to answer in this post and doc it should work:
{ $and: [{"Key1": "Value1"}, {"Key2": "Value2"}] }
But it does not work. I can't figure out how to do it.