When searching for data using the same field in mysql with different values, I am experiencing issues with receiving empty values in response.
I attempted to use the $and condition in sequelize to find the data, but unfortunately, I am not getting any data in response.
exports.multibranchdata = (req, res) => {
const wherequery = {
$and: [{ id: { eq: 1 } },
{ id: { eq: 2 } }
] };
branch.findAll(wherequery)
.then(data => res.status(200).send(data))
.catch(Sequelize.ValidationError, err =>
res.status(422).send(err.errors[0].message))
.catch(err => res.status(400).send(err.message));
};