Reputation: 141
as you can see in the image below I just create an user even though it still gave 0 , and the same thing with collections when I run show collection it shows me one , but when when I do db.collection.count() gave me 0.
the image for db.collection.count()
I do have one document on this collection here is image from Mongo compass
Upvotes: 0
Views: 167
Reputation: 10737
check:
use admin
show collections
db.system.users.count()
Note also it is a good practice to add code as text and not as pictures so it is easier to interpret.
Upvotes: 1