我有一些这样的代码:
req.models.order.find({})
.each(function(order){
req.models.food.find({orderId: order.id}{
//...
order.foods = ['...'];
return order;
})
})
.get(function(order){
//the orders have no 'foods' attribute
})
我该如何解决?