title: Unable to update the data in mongodb
body: <p>I need to update some fields 
  i am using mongoose driver and express js </p>
  
  <p>schema:</p>
  
  <pre><code> var mongoose = require('mongoose'),
      Schema = mongoose.Schema;
  
  var ProfilesSchema = new Schema({
  
      presentRound: {
          type: Number,
          default: 1
      },
  
      scheduleInterviewStatus: {
          type: Boolean,
          default: false
      },
  
      interviewStatus: String,
  
      ratings: [{
          round: Number,
          rating: Number,
          feedback: String,
          interviewer: String,
          roundStatus: String
      }]
  });
  </code></pre>
  
  <p>module.exports = mongoose.model('Profiles', ProfilesSchema);</p>
  
  <p>so in these i need to update by id <code>presentRound</code> <code>scheduleInterviewStatus</code> <code>interviewStatus</code> and <code>roundStatus(in ratings array by matching round number)</code></p>
  
  <p>Before updating:</p>
  
  <pre><code>    presentRound: 1,
      scheduleInterviewStatus: true,
      interviewStatus: "on-hold",
      ratings: [{
          round: 1,
          rating: 3,
          feedback: "good communication skills",
          interviewer: "Vishal",
          roundStatus: "second opinion"
      }]
  </code></pre>
  
  <p>After Updating:</p>
  
  <pre><code>    presentRound: 2,
      scheduleInterviewStatus: false,
      interviewStatus: "in-process",
      ratings: [{
          round: 1,
          rating: 3,
          feedback: "good communicationskills",
          interviewer: "Vishal",
          roundStatus: "selected"
      }]
  </code></pre>
  
  <p>i have tried to run the query in robomongo first but getting error </p>
  
  <pre><code>Error: Fourth argument must be empty when specifying upsert and multi with an object.
  </code></pre>
  
  <p>Query:</p>
  
  <pre><code>   db.getCollection('profiles').update({
          "_id": ObjectId("57a9aa24e93864e02d91283c")
      }, {
          $set: {
              "presentRound": 2,
              "interviewStatus":"in process",
              "scheduleInterviewStatus": false          
  
          }
      },{
          "ratings.$.round": 1
      },{
          $set: {
  
              "ratings.roundStatus":"selected"
  
  
          }
      },
     { upsert: true },{multi:true})
  </code></pre>
  
  <p>I have no idea where i am going wrong</p>
  
  <p>Please help.</p>