【发布时间】:2017-05-02 10:17:50
【问题描述】:
这是我在数据库中删除行的代码
Model.destroy({
where: {
...
}
}).then((response) => {
console.log(response)
})
我在console.log 中得到的是0 或1,无论是否删除记录..
有没有办法在承诺中返回被破坏的行?
所以响应应该是这样的 { id:123, ... }
【问题讨论】:
-
添加了一些更新。
标签: node.js row sequelize.js destroy