Posts

Showing posts from December, 2019

sequelize.js deep save/update model instance

You need to call update on the instance of the db model: for eg:  const address= { "addressInfo" : {          "permanent" : {              "district" :  "Morang" ,              "city" :  "Biratnagar" ,              "wardNo" :  "03" ,              "toleName" :  "Gaurigunj"         },          "current" : {              "district" :  "Kathmandu" ,              "city" :  "Lazimpat" ,         ...