I am trying to recover a table. the console.log(docs) works but I can't output the array to a variable. I want to retrieve the table stored in docs
var Datastore = require('nedb'),
db= new Datastore ({filename: "dataCalendar.db", autoload: true});
db.find({},(function (err, docs) {
console.log("docs", docs);
test = docs;
}
))
I tried to output it in an external variable but it does not work indefinite variable