title: Querying multiple sub-document elements in Mongoose
body: <p>I can't seem to get the following query to work:</p>
  
  <pre><code>Group.find({ $or: [ {'groupOwner': req.user._id }, { 'subscribers.user': req.user._id, 'subscribers.level': 'owner' } ] }, 'groupName', { sort: ['groupName', 'ascending'] }, function(err, groups) {
  </code></pre>
  
  <p>My schema has a Group, with subscribers as a subdocument array. I want to find all groups where the groupOwner matches the passed user ID (works fine), and all documents where subscribers.user = req.user._id AND subscribers.level = 'owner'</p>
  
  <p>The query as written returns all subdocuments where subscribers.user = req.user._id OR there is some subscriber with level = 'owner'. To be clear, I only want groups where subdocument has subscribers.user = req.user._id AND THE SAME SUB-DOCUMENT has subscribers.level = 'owner'.</p>
  
  <p>I've tried all manner of $and and $elemMatch and just can't get it. Thanks for any help!</p>