Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sequelize change item

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 () {})
    }
  })
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sequelize #change #item
ADD COMMENT
Topic
Name
5+6 =