📜  使用 find sequelize 更新列 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:43.148000             🧑  作者: Mango

代码示例2
Project.find({ where: { title: 'aProject' } })
  .on('success', function (project) {
    // Check if record exists in db
    if (project) {
      project.update({
        title: 'a very different title now'
      })
      .success(function () {})
    }
  })