Database Management MongoDB Subjective
Sep 25, 2025

How do you count documents in a collection?

Detailed Explanation
Use countDocuments() method: db.collection.countDocuments({})
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback