title: How can i find object from an array in mongoose
body: <p>I have a schema like following : -</p>
  
  <pre><code>var P = {
       s : [{
           data : [],
           sec : mongoose.Schema.Types.ObjectId
       }]
   };
  </code></pre>
  
  <p>Now I want to find only the object of section not entire the row. Like If I pass <code>sec</code> value I want only the value of <code>s.data</code> of that <code>sec</code> object.</p>
  
  <p>example : - </p>
  
  <pre><code>{ s : [ 
      {
         data : [],
         sec : '52b9830cadaa9d273200000d'
      },{
          data : [],
         sec : '52b9830cadaa9d2732000005'
      }
    ]
  }
  </code></pre>
  
  <p>Result should be look like - </p>
  
  <pre><code> {
      data : [],
      sec : '52b9830cadaa9d2732000005'
   }
  </code></pre>
  
  <p>I do not want all entire row. Is it possible? If yes, then please help me.</p>