We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e6fc4c + 3410c26 commit 2b3566dCopy full SHA for 2b3566d
index.js
@@ -1510,12 +1510,14 @@ var cursorOperationsMap = {
1510
$count: function(cursor, value, cb) {
1511
cursor.count()
1512
.then(function(result) {
1513
+ cursor.close();
1514
cb(null, result);
1515
}, cb);
1516
},
1517
$explain: function(cursor, verbosity, cb) {
1518
cursor.explain(verbosity)
1519
1520
1521
1522
1523
0 commit comments