I would like to know if there is a convention for database collections such as:
PageVisit
or page_visit
.
Are there any advantages/d
Just avoid using hyphens in your collection names.
And that's only because, if you use the cli of the two below calls, the first is invalid JavaScript:
db.foo-bar.find();
db['foo-bar'].find();
They are both functionally identical, but the second is slightly more annoying to type and doesn't tab-complete.
Apart from that, advantages/disadvantages depend on your use of the collections. Being consistent is more important than which convention you choose.