Mongodb-nodejs-driver-deprecationwarning-collection-count-is-deprecected
db.collection("posts").countDocuments(
{}, // filters
{}, // options
function(error, result) {
console.log(result);
}
);
Mappy Show