title: view of query in mongodb
body: <p>I have a collection ,this is one of it's docs :</p>
  
  <pre><code>{
  "_id" : 1 ,
  "first_name" : "john",
  "phone" : [ 
      {
          "type" : "mobile",
          "number" : "9151112233"
      }, 
      {
          "type" : "home",
          "city_code" : 51,
          "number" : "55251544"
      }, 
      {
          "type" : "mobile",
          "number" : "9152425125"
      }
    ]
  }
  </code></pre>
  
  <p>I'm searching for "phones" that contain type "mobile" and show them.</p>
  
  <p>I need something like this :</p>
  
  <pre><code>{
   "number" : "9151112233",
   "number" : "9152425125"
  }
  </code></pre>
  
  <p>I write this query for that :</p>
  
  <pre><code>db.main.find({ _id : 1 , 'phone.type' : "mobile" },{'phone.number' : true , _id : false}).forEach(printjson)
  </code></pre>
  
  <p>I want to show only numbers that their types are mobile but this query show all to numbers because this single doc contain others too.
  How can I fix it?</p>