length

Number of items in the collection

Example

console.log(db.collection("users").length);

Last updated