2016-03-05 55 views

回答

0

嘗試類似:

var myCursor = db.doc.find({ filter }); 

while (myCursor.hasNext()) { 
    //do something 
    var obj = myCursor.next() 
} 
// finished running! can run completion method