Answer the question
In order to leave comments, you need to log in
Why the answer is object Object?
Why does a request return an object Object and not the result itself?
useDB.collection("items").find({}).toArray((err, res) => {
if(err) throw err;
console.log("added " + res);
data.close();
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question