我有这样的事情:
var query = collection.find(whole_query); //this came like {whole_query}
query.exec(function (err, docs) {
if(err) console.log(err);
docs.forEach(function (item) {
console.log(item);
});
mongoose只做:db.collection.find({})没有var'whole_query':c
感谢您的帮助:)