MongoDB-NodeJs-Driver, Deprecation-warning: Collection.Count sudah usang

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