Skip to content

Commit

Permalink
Add writeOperationOptions support to collection.drop() call (supporte…
Browse files Browse the repository at this point in the history
…d as of MongoDB 4.0)
  • Loading branch information
nikwen authored and mingchuno committed Apr 24, 2019
1 parent b7efa5a commit 0882565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ module.exports = function (connect) {

clear(callback) {
return withCallback(this.collectionReady()
.then(collection => collection.drop())
.then(collection => collection.drop(this.writeOperationOptions))
, callback)
}

Expand Down

0 comments on commit 0882565

Please sign in to comment.