MONGODB-NODEJS-DRIVER-DEPRECATIONWARNING-COLLECTION-COUTH-IS-IS-DEPRECATED

db.collection("posts").countDocuments(
  {}, // filters
  {}, // options
  function(error, result) {
    console.log(result);
  }
);
Mappy Show