MongoDB-nodejs-driver-decrecation-warning-collection-count-is-decrecated

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