e-oj / Fawn

Transactions for MongoDB (See the README)
https://www.npmjs.com/package/fawn
MIT License
486 stars 54 forks source link

updated mongoose update function to Collection.updateMany #93

Open adeel-jf opened 2 years ago

adeel-jf commented 2 years ago

Collection.update function is deprecated by mongoose which is causing trouble to update multiple records. Now using Collection.updateMany for updating records in mongoDB.