I have a table in psql db like below.
[{
name="ABC",
email="xyz",
animals=["cats","dogs","elephants","giraffes"]
},
{
name="BCD",
email="fgh",
animals=["giraffes"]
}]
....
and an array that I'll get in the request like below
hasAnimals=["lion","cheetah","dog","cat"]
How do I use sequelize where clause to get the records of all the people in the above table who have at least 1 of the animals from the hasAnimals array.
For eg. the stated example should fetch me the user with name ABC as ABC has cats & dogs and so does the array that I got in the request