var arr=[18,5,6,....]; Beneficiary.find({Ward: { $in: arr } }).done(function(err,ben) { if(err) console.log(err); else { console.log(ben); } });
I want to fetch those records from Beneficiary collection where Ward are from arr list. This code gives no error but returns blank array []. Although data is there in the database.