typicode / lowdb

Simple and fast JSON database
MIT License
21.3k stars 918 forks source link

how to push data into array in another array #545

Closed Dallok97 closed 2 years ago

Dallok97 commented 2 years ago

db.defaults({ device : [], area : [{init : [], enter :[], work :[], quit :[]}], vehicle :[{init : [], enter :[], work :[], quit :[]}] }).write()

scandata = { macaddress : "", uuid: "" }

how to push the scandata at 'init' in 'area'