Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlexei Parphyonov
34,128 PointsThe name of the collection
Hey, I just found it strange that nowhere in the code we declared 'user' in plural, i.e. 'users'. Still the name of the collection in MongoDB is 'users'. Curious how it happened to become plural? Is it Mongo itself taking the name of the schema and adding 's' in the end?
Thanks in advance. I'm sure I will find it out later, however it is soo curious.
1 Answer
Bruno Navarrete
Full Stack JavaScript Techdegree Graduate 22,246 PointsIt's actually Mongoose doing that, check out this discussion on "why" and how to avoid it.
Gabbie Metheny
33,778 PointsThis was driving me crazy, thanks Bruno!!!
Hashim Amun
3,434 PointsHashim Amun
3,434 PointsGreat Question!!