database-helpers
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -20,3 +20,3 @@ "use strict"; | ||
try { | ||
const count = yield db.collection(collection).countDocuments(); | ||
const count = yield db.collection(collection).estimatedDocumentCount(); | ||
return Promise.resolve(count); | ||
@@ -23,0 +23,0 @@ } |
{ | ||
"name": "database-helpers", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"description": "Functions to start a connection with the database and perform database operations with mongo database.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
18210