title: Mongoose .populate with 2 conditions
body: <p>I have a Team with both hometeam and awayteam variables, I have the code below at the moment to show the name of the hometeam for each match, how would I change this so that I am showing the both the hometeam and awayteam for each match so that it would look something like the following:</p>
  
  <pre><code>[
    "Team 1", "Team 2",
    "Team 3", "Team 4"
  ]
  </code></pre>
  
  <p>Where Team 1/2 are in one match and Team 3/4 are in another match for example.</p>
  
  <pre><code>  app.get('/homeTeamNames', function(req, res) {
      util.log('Serving request for url [GET] ' + req.route.path);
      Match.find({}, {'hometeam': 1}).populate('hometeam', {name: 1}).exec(function(err, teams) {
        var homeNames = [];
        for(var i = 0; i &lt; teams.length; i++) {
          homeNames.push(teams[i].hometeam.name);
        }
        res.send(homeNames);
      });
    });
  </code></pre>