title: MongoDb $match for embedded document
body: <pre><code>db.entities.aggregate([$match : {"Company.Id" : {$gt : 11}}])
  </code></pre>
  
  <p>above code works in mongo shell but below does not work why ??</p>
  
  <pre><code>db.entities.aggregate([{$match : {Company : {Id : {$gt : 11}}}}])
  </code></pre>
  
  <p>it displays nothing.</p>
  
  <p>Here is my mongodocument </p>
  
  <pre><code> "_id" : ObjectId("552ca154993cfc98fef1e13c"),
   "Name" : "R",
   "Address" : "RAdd",
  "Company" : {
       "Name" : "something",
       "Id" : 14
   }
  </code></pre>