Skip to content

Commit 99bca4b

Browse files
authoredAug 13, 2018
Merge pull request #450 from gendigbadig/master
add `useNewUrlParser` on validOptionNames
2 parents 2d2999e + 21618d8 commit 99bca4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎lib/mongodb.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ MongoDB.prototype.connect = function(callback) {
221221
'numberOfRetries',
222222
'auto_reconnect',
223223
'minSize',
224+
'useNewUrlParser',
224225
// Ignored options
225226
'native_parser',
226227
// Legacy options
@@ -1335,7 +1336,7 @@ MongoDB.prototype.count = function count(model, where, options, callback) {
13351336
debug('count', model, where);
13361337
}
13371338
where = self.buildWhere(model, where);
1338-
this.execute(model, 'count', where, function(err, count) {
1339+
this.execute(model, 'countDocuments', where, function(err, count) {
13391340
if (self.debug) {
13401341
debug('count.callback', model, err, count);
13411342
}

0 commit comments

Comments
 (0)
Please sign in to comment.