title: Update many records by id
body: <p>i'm woking with mongoose on a project and i have the following issue:
  I need to update many records by its ids ( these ids was stored in an array ), i've tried this method:</p>
  
  <pre><code> Collection.update({$in:{"_id":ids}}, {$set:{data_of_id}}, {upsert : true},
                   {"multi": true}, function(err, res){
  
                  if(err){ console.log(err) };
                  console.log(res);               
   });
  </code></pre>
  
  <p>ids[] is the ids of the collection i need to update, and data_of_id is the new records wich will replace the old records. But i don't know how to associate these ids with each record in the array. I tried to put the update query into a foreach method too, but no success. The query above don't return any error or message, the called method was executed but don't execute the query.</p>