Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

update data in sequelize

const objectToUpdate = {
title: 'Hello World',
description: 'Hello World'
}

models.Locale.update(objectToUpdate, { where: { id: 2}})

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #data #sequelize
ADD COMMENT
Topic
Name
8+8 =