Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Coder321 : It won't work because the query will only return records related to a certain model, and the topicstarter needs everything.
You can try as described here https://stackoverflow.com/questions/21429630/query...
MongoClient.connect("mongodb://localhost:27017/exampleDb", function(err, db) {
if(err) { return console.dir(err); }
var collection = db.collection('kittens');
collection .find().toArray(function(err, kittens) {
// here ...
});
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question