I think you have already found a solution, but anyway. You can easily use the async library. In this case, your code will look like this:
async.parallel( { team: function(callback){ Team.find({name: 'myteam'}, function (err, docs) { callback(err, docs); }); }, games: function(callback){ Games.find({visitor: 'myteam'}, function (err, docs) { callback(err, docs); }); }, }, function(e, r){
source share