title: Mongo find an array inside a collection and get only that data
body: <p>How can I get only the data from menus which _id is 1?</p>
  
  <p>I've tried:</p>
  
  <pre><code>db.collection("restaurants")
    .find({ name : String(name), "menus._id": Number(id)} )
    .toArray(function (err, result) {
  </code></pre>
  
  <p>But I still get the full result from restaurant and not only the menu</p>
  
  <p><a href="https://i.stack.imgur.com/CmeZg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CmeZg.png" alt="enter image description here"></a></p>