I am making a search in a database which have a table productDetails.
I want a query something like this in sequelize,
SELECT * FROM productDetails WHERE title LIKE '%search1%' OR title LIKE '%search2%'
currently using
const pd= await ProductDetail.findAll({
where: {
[Op.or]: {
title: { [Op.like]: `%search1%` },
title: { [Op.like]: `%search2%` },
},
},