Iterating over a mongodb cursor serially (waiting for callbacks before moving to next document)

后端 未结 0 1365
夕颜
夕颜 2020-12-23 00:59

Using mongoskin, I can do a query like this, which will return a cursor:

myCollection.find({}, function(err, resultCursor) {
      resultCursor.each(function         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题