title: findOne Subdocument in Mongoose
body: <p>I am attempting a findOne query in Mongoose on a subdocument but I'm not having much luck...</p>
  
  <p>My Schema looks like this:</p>
  
  <pre><code>var Team = mongoose.Schema({
      teamName:       String,
      teamURL:        String,
      teamMembers:    [{username: String, password: String, email: String, dateCreated: Date}],
  });
  
  var Team = db.model('Team', Team);
  </code></pre>
  
  <p>I need to simply find the users email from the document in which I am using this query</p>
  
  <pre><code>Team.findOne({'teamMembers.username': 'Bioshox'}, {'teamMembers.$': 1}, function (err, team) {
      if (team) {
          console.log(team[1].email);
      }
  });
  </code></pre>
  
  <p>Any help would be appreciated! </p>