title: Update multiple records using mongoose?
body: <p>I am writing a service class (mongo_service.js) in order to keep my CRUD operations seperate for a project.</p>
  
  <p>Below is the code to update multiple items.</p>
  
  <pre><code>updateMultipleCollection(Model, searchObject, collectionNewToUpdate) {
      return new Promise(function (resolve, reject) {
          Model.update( searchObject, collectionNewToUpdate, {new:true, multi:true}, function (err, data) {
              if (err) {
                  reject(err);
              }
              resolve (data);
              console.info("Multiple updates successful");
          });
      });
  };
  </code></pre>
  
  <p>This works fine but the promise won't return the updated objects and I was wondering whether there was any other way to overcome this??</p>
  
  <p>NOTE: In mongoose documentation they have mentioned that .update() will not return the updated objects whereas .findOneAndUpdate() does.</p>