Skip to content

Commit 10a6f9e

Browse files
Adds possibility to call updateMany on MongoDB
1 parent 1388cbc commit 10a6f9e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,9 @@ var MongodbDriver = Base.extend({
342342
case 'update':
343343
db.collection(collection)[command](options.query, options.update, options.options, callbackFunction);
344344
break;
345+
case 'updateMany':
346+
db.collection(collection)[command](options.query, options.update, options.options, callbackFunction);
347+
break;
345348
default:
346349
db[command](collection, callbackFunction);
347350
break;

0 commit comments

Comments
 (0)