typicode / lowdb

Simple and fast JSON database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to push data into array in another array

Dallok97 opened this issue · comments

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'