title: how to return partial array match in inner array of mongodb?
body: <p>I am showing an example of mongodb collection document structure. I have also shown my expected result while making query which i have shown. </p>
  
  <p>Document Structure::</p>
  
  <pre><code>{ 
    _id : "132423423", 
    name : "hi_code", 
    my_entries : [ 
          { 
            e_id : "12345", 
            e_name : "f1", 
            e_posted : "2010-05-01", 
          }, 
          { 
            e_id : "12346", 
            e_name : "f2", 
            e_posted : "2010-06-01", 
          }, 
          { 
            e_id : "12346", 
            e_name : "f3", 
            e_posted : "2010-03-02", 
          } 
     ] 
  } 
  </code></pre>
  
  <p>Query Structure::</p>
  
  <pre><code>db.myCollection.find( { my_entries : { $elemMatch : { e_posted : "2010-06-01", 
  e_name : "f2" } } } ) 
  </code></pre>
  
  <p>Expected Result::</p>
  
  <pre><code>{ 
    _id : "132423423", 
    name : "hi_code", 
    my_entries : [ 
          { 
            e_id : "12346", 
            e_name : "f2", 
            e_posted : "2010-06-01", 
          }
     ] 
  } 
  </code></pre>
  
  <p>I don't want to use map reduce for this because i am working on big database which will make it slow performance, just want to make it possible only by find query.</p>