Passing null or an empty Json to the selector does not seem to work. I am trying to get all the data in a database. Tried:
db.list({}, function (err, data) {
if (err) {
return console.log("Error:",err.message);
}
console.log(data);
});
db.find(null, function (err, data) {
if (err) {
return console.log("Error:",err.message);
}
console.log(data);
});
db.bulk({docs:[]}, function (err, data) {
if (err) {
return console.log("Error:",err.message);
}
console.log(data);
});