Here is my code for deleting rows in database
Model.destroy({
where: {
...
}
}).then((response) => {
console.log(response)
})
What I am getting in console.log
is 0
or 1
whether record deleted or not..
Is it any way to return destroyed row in promise?
So response should be like this { id:123, ... }