title: Mongo find based on value in array of objects
body: <p>the documents looks like :</p>
  
  <pre><code>{
    name: 'abc',
    types: [
       {name:'Large',stock:true}, 
       {name:'XLarge',stock:false},
       {name:'XXLarge',stock:true}
    ]
  }
  </code></pre>
  
  <p>I'm trying to figure out the query to return all documents which are out of stock.</p>
  
  <p>Something like : <code>.find({types:{{$nin:{stock:true}}})</code>
  Can I somehow do that?</p>