I have connected with mongodb and nodejs.
I have question about sav query results to list.
results = [];
for(i = 0; i<query.length; i++){
db.collection(collectionName).find(query[i]).toArray(function(err, result){
results[i] = result;
});
}
I used async.waterfall but it doesn't work very well... If you fixed this problem like me, would you please how to fix this?
query like this :
{
location:{
$geoWithin : {
$center: [[lng, lat], radian]}},
time : "time value"
}
lng, lat, time are list..