title: Push in subarray with Mongoose
body: <p>I've a datamodel with three levels of depth.</p>
  
  <pre><code>var job = mongoose.Schema({
          id:Number,
          jobName:String    
      });
  
  var demo = mongoose.Schema({
  
              id:Number,
              demoName:String,
              job:[job]
      });
  
  var ExerciseSchema = mongoose.Schema({
  
              id:Number,
              name:String,
              area:String,
              medicalObj:[demo]   
      });
  </code></pre>
  
  <blockquote>
    <p>var Exercise = mongoose.model('Exercise', ExerciseSchema);</p>
  </blockquote>
  
  <p>I want to push the new object in the second nested array</p>
  
  <p>I'm trying this way but is not working:</p>
  
  <pre><code>    Exercise.update({'area':area},{$push:{"medicalObj.job":{jobName:'Andrea'}}},{upsert:true},function(err){
  
          if(err){
                  console.log("ERROR" + err);
          }else{
                  console.log("Successfully");
  
          }
    });
  </code></pre>