I want to pass as array of id's and with this array i want to delete multiple records from table in node js
Below code which i was trying but it's not working properly;
let deletedImageIds = [24081,222];
db.query(`delete from mx_product_images where productImageID in ?`, deletedImageIds, (err, res) => {
if (err) {
console.log("error: ", err);
callback(err, null);
return;
}
callback(null, res);
return;
})