title: Update array content within another array that don't have key
body: <p>I have mongoDB content as below:</p>
  
  <pre><code>[
     {
        "_id":{
           "$oid":"57c6699711bd6a0976cabe8a"
        },
        "ID":"1111",
        "FullName":"AAA",
        "Category":[
           {
              "CategoryId":{
                 "$oid":"57c66ebedcba0f63c1ceea51"
              },
              "_id":{
                 "$oid":"57e38a8ad190ea1100649798"
              },
              "Value":[
                 {
                    "Name":""
                 }
              ]
           },
           {
              "CategoryId":{
                 "$oid":"57c3df061eb1e59d3959cc40"
              },
              "_id":{
                 "$oid":"57e38a8ad190ea1100649797"
              },
              "Value":[
                 [
                    "111",
                    "XXXX",
                    "2005"
                 ],
                 [
                    "1212",
                    "YYYY",
                    "2000"
                 ],
                 [
                    "232323",
                    "ZZZZZ",
                    "1999"
                 ]
              ]
           }
        ]
     },
     {
        "_id":{
           "$oid":"57c6699711bd6a0976cabe8a"
        },
        "ID":"1111",
        "FullName":"BBB",
        "Category":[
           {
              "CategoryId":{
                 "$oid":"57c66ebedcba0f63c1ceea51"
              },
              "_id":{
                 "$oid":"57e38a8ad190ea1100649798"
              },
              "Value":[
                 {
                    "Name":""
                 }
              ]
           },
           {
              "CategoryId":{
                 "$oid":"57c3df061eb1e59d3959cc40"
              },
              "_id":{
                 "$oid":"57e38a8ad190ea1100649797"
              },
              "Value":[
                 [
                    "4444",
                    "XXXX",
                    "2005"
                 ],
                 [
                    "7777",
                    "GGGG",
                    "2000"
                 ],
                 [
                    "8888",
                    "ZZZZZ",
                    "1999"
                 ]
              ]
           }
        ]
     }
  ]
  </code></pre>
  
  <p>Here I have an array named 'Category' where it contains objects with different category id.</p>
  
  <p>I need to</p>
  
  <ol>
  <li><p>select a particular category id - '57c3df061eb1e59d3959cc40'</p></li>
  <li><p>From the above selected Category, we get 'Value' array</p></li>
  <li><p>From Value array need to find if the second value is equal to 'ZZZZZ' ie. value[1] == 'ZZZZZ'</p></li>
  <li><p>And now, update the matched value arrays with a new value at the end</p></li>
  </ol>
  
  <p>Eg:</p>
  
  <pre><code>[
     "232323",
     "ZZZZZ",
     "1999"
  ]
  should be updated to
      [
     "232323",
     "ZZZZZ",
     "1999",
     "update1"
  ]
  
  and
  
  [
     "8888",
     "ZZZZZ",
     "1999"
  ]
  should be updated to
  [
     "8888",
     "ZZZZZ",
     "1999",
     "update1"
  ]
  </code></pre>
  
  <p>I have tried as below:</p>
  
  <pre><code>resume.update({
          "Category.CategoryId": new ObjectId('57c3df191eb1e59d3959cc43'), 
          "Category.Value.$.1": 'ZZZZZ'
        },
        {"$set": {"Category.Value.$.3": "update1"}
      }, function(err, resData){
          res.send(resData);
      });
  </code></pre>
  
  <p>But, nothing gets updated. Its there any way to get this work. Please help to update the inner array.</p>
  
  <p>Thanks in advance.</p>