title: MongoDB, Mongoose: How to find subdocument in found document?
body: <p>I'm stuck on trying to get subdocument by <code>_id</code> in found document.</p>
  
  <p>Example Schema</p>
  
  <pre><code>var User = mongoose.Schema({
          name:       String,
          photos:    [{src: String, title: String}]
      });
  var Team = db.model('Team', Team);
  </code></pre>
  
  <p>Now I'm getting one user:</p>
  
  <pre><code>myUser = User.findOne(...)...
  </code></pre>
  
  <p>How can I get now <code>src</code> of his photo by it's <code>_id</code> (or <code>title</code>)?</p>
  
  <p>Something like:</p>
  
  <pre><code>myUser.photos.findOne({'_id': myId})
  </code></pre>