title: How to get data from array in mongoose?
body: <p>I am new to mongoose node.js and mongoDB, I have a db Schema like </p>
  
  <pre><code>Project:{
      projectName:"String",
      projectManager:"String",
      task:[{
             taskName:"String",
             timetakeninhrs:"String"
      }]
  };
  </code></pre>
  
  <p>So what I want is to get only the details of task with particular task name.
  I am writing sql script so that you can know what I want :</p>
  
  <pre><code>Select taskname,timetakeninhrs from project where taskName ='DB create';
  </code></pre>