Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sequelize update

var Book = db.define(‘books’, {
 title: {
   type: Sequelize.STRING
 },
 pages: {
   type: Sequelize.INTEGER
 }
})

Book.update(
   {title: req.body.title},
   {where: req.params.bookId}
 )
Source by jongmin92.github.io #
 
PREVIOUS NEXT
Tagged: #sequelize #update
ADD COMMENT
Topic
Name
2+3 =