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 trial

JavaScript User Authentication With Express and Mongo User Registration Adding Data to the Database

Alexei Parphyonov
Alexei Parphyonov
34,128 Points

The 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

Gabbie Metheny
Gabbie Metheny
33,778 Points

This was driving me crazy, thanks Bruno!!!