PHP MongoDB Nested Document Search
<p>I have a nested Document which have some language dependent content and I want to search if content have data for specific language and query should return me content else false.</p>

<p>I tried this query option</p>

<pre><code>$data = $collection-&gt;findOne(array('original'=&gt;'What is this', 'translation.language'=&gt;'english') );
</code></pre>

<p>I am expecting this result:</p>

<pre><code>{
       "language": "english",
       "quote": "What is this"
}
</code></pre>

<p>but above query return both language content. Can anyone please share some code also regarding saving and updating data using PHP</p>

<p>My collection:</p>

<pre><code>{
   "_id": ObjectId("56a8844bc56760810e483815"),
   "language": "english",
   "original_key": "What is this",
   "translation": [
     {
       "language": "english",
       "quote": "What is this"
    },
     {
       "language": "spanish",
       "quote": "What is this Spanish"
    }
  ]
}   
</code></pre>