title: To update multiple documents in mongoose (Node JS)
body: <p>I'd like to update multiple documents with query that is made by object array. However I found that only one documents had been changed.</p>
  
  <pre><code>var split = num.toString().split(',');
  var list = new Array;
  for ( var i in split ) {
      var pk = {
          "_id" : split[i],
          "id" : user.id
      }
      list.push(pk);
  }
  
  var vm = {name:"robert",category:"media"};
  
  database.bookModel.findOneAndUpdate(list, vm, { multi: true }, function (err, result) {
  ....
  </code></pre>
  
  <p>Following Approach I couldn't follow to update Multiple document.
  I'm using findOneAndUpdate query that I found only one record will be changed.</p>
  
  <p>Am I doing something wrong? Is there any way to use criteria with object array?</p>