title: Mongo/Mongoose - markModified not working
body: <p>I have the following query:</p>
  
  <pre><code>  Section.find({"clause": sub.section}, function(err, docs){
      var detail = parseInt(sub.detail);
      docs[0].subClauses[0].additionalDetails[detail-1].percentile = sub.percentile;
      docs[0].markModified("subClauses");
      docs[0].save(function(err, doc){
        if(err) { return callback(err) }; 
        callback();
      })
    })
  </code></pre>
  
  <p>When I log the doc inside the .save function it appears to have saved successfully. However on querying the db elsewhere the save has not happened. The object its trying to save to is 3 deep like this: </p>
  
  <pre><code>[
    {
    "clause": "1",
    "subClauses: 
     [
       {
       "clause":"1.1",
       "additionalDetails:
        [
          {
          "detail": "1",
          "content": "whatever" 
          }
        ]
      }
    ]  
   }
  ]
  </code></pre>
  
  <p>With several items inside each array.</p>
  
  <p>Am I not able to save data to the nested array object using Mongo?</p>