-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:
"db.collection.count() " instead of "db.COLLECTION_NAME.count() " is misleading & cause problems
Wrong command
show dbs
use database_name ( ex : myproject)
db.collection.count() > gives 0 , wrong result
correct command
show dbs
use database_name ( ex : myproject)
show collections
db.COLLECTION_NAME.count()
I can see that a lot of people have face the same issue as me by looking at the number of question on same issue on stackoverflow .
I posted a similar que :
https://stackoverflow.com/questions/46654878/mongoose-save-function-is-not-persisting-in-local-mongodb