node js, sails js, waterline. I need to update (or click) the values ββin the diagram below after inserting
I am using sailsjs with waterline and mongodb.
{ "countries": { "states": [ { "statename": "state", "districts": [ { "distname": "district", "cities": [ { "cityname": "Hyderabad", "places": [ { "placename": "hitechcity" } ] } ] } ] } ] } }
I need to know how to update it. I need something like this after the update
{ "countries": { "states": [ { "statename": "state", "districts": [ { "distname": "district", "cities": [ { "cityname": "Hyderabad", "places": [ { "placename": "hitechcity" }, { "placename": "someother place" } ] } ] } ] } ] } }
please help me.
Shiva gouraram
source share