mongoose數據庫怎么同步讀取數據?
var newOrderList = {shopPlace : String}
async.map(orderList,function(oneOrder,cb){
Shop.findOne({'name': oneOrder.shopName},function(err,shop){
newOrderList.shopPlace = shop.place;
cb(null,newOrderList)
})
},function(err,results){
res.render('userOrderRecord',{
,'orderList': results
});
})