im using mongoDB and registered many users in my website.So i know that user collection is not empty but i can not see my collections. can you help me with that?
i attach my other parts maybe it could help you to find the problem.
i think i should authorized user to see mongo. thank you all.
CodePudding user response:
Assuming your register works properly I wouldn't worry, this is expected behavior. Your collection is just very very small so it's size is rounded down.
I recommend you run db.stats()
to check data stats of db. The results would look like this:
{
"db" : "local",
"collections" : 1,
"objects" : 15,
"avgObjSize" : 123.4,
"dataSize" : 660,
"storageSize" : 60960,
"numExtents" : 0,
"indexes" : 1,
"indexSize" : 20960,
"ok" : 1
}
This way you can confirm if your db is actually empty. If it is then I'd check the register route logic.