Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
see number of documents in mongodb collection
Bradd Szonye
Programming language:
Shell/Bash
2021-07-05 21:13:51
0
Q:
see number of documents in mongodb collection
verticese
Code:
Shell/Bash
2021-02-28 22:30:03
db.collection.count()
1
Cute
Code:
Shell/Bash
2021-10-03 02:26:09
db.collection.countDocuments( <query>, <options> )
1
Tags
number
mongodb
Related
mongodb view users
mongodb get all users
mongodb list users
list all collections in the MongoDB shell
New to Communities?
Join the community