Closed metalperl closed 5 years ago
Hi @metalperl
Can you try to see if the issue can be produced in development
?
Best regards, Oscar
Hi @metalperl,
I've tested the count with the provided version of mgo and it works as expected. This doesn't look like an issue with the library but more to do with your mongo setup/code.
I would suggest the following:
Models
input variable contains the right collection namesModels
is done properlycoll, _ := db.C(collection).Count()
Hope this helps, thanks! Esther
Unable to get a count on Collections in MongoDb:
Expected Results: 155799
Actual Results: 0
What version of MongoDB are you using (
mongod --version
)?What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
Can you reproduce the issue on the latest
development
branch?Have not tried as of yet