title: Mongodb Embedded document querying
body: <p>Hi i have a data model like this </p>
  
  <pre><code>module{
      name: "xx",
      sa: [
          {
              sa_name: "yy",
              fact: [
                  fact_name: "zz"
              ],
              dim: [
                  dim_name: "qq"
              ]
          }
      ]
  }
  </code></pre>
  
  <p>I have sa embedded in module and fact and dim embedded inside sa.</p>
  
  <p>I tried <code>db.coll.find({"module.sa.fact.name":"zz"},{})</code> is not working where as for single nest <code>db.coll.find({"module.sa.name":"yy"},{})</code> is working fine.
  How can i query this sub document inside sub document.</p>