Official Twitter of Mongoose, the most downloaded database framework on npm. Support our work: opencollective.com/mongoose 🙏 #nodejs #mongodb

Miami Beach, FL
Cool pattern using Mongoose statics for logging 😎
Also good for Locality of Behavior All notifications, etc. are in the function, instead of some event layer indirection Makes testing easier: the `if (isTest)` bit makes it so that `await Log.sideEffect()` waits for the result if NODE_ENV === 'test'
287
Mongoose aliases is joke to you? 😅
PRO TIP: Use single character column names in your database. ‘u’ for users, ‘p’ for password, ‘e’ for email. We reduced our database size by 40% just from shorter column names.
2
149
We finally corrected an incorrect statement in our hooks library's docs 🌝🏀
2
6
454
The best db setup right here 👇
Replying to @marclou
My database is hosted on MongoDB Atlas. I create a free M0 customer for each new project and use daily backups ($10/month). I use mongoose on top to simplify queries.
3
147
We've been saying this for 15 years 😂
Working with and changing database schemas is a nightmare with vibe coding Especially once you have lots of production data. Probably the hardest thing to do in vibe coding right now. How's everyone handling this stuff?
1
147
May be biased but we agree 😆
Replying to @mongoosejs @rauchg
mongoose the 🐐 as well
1
144
Common gotcha here: Mongoose supports BOTH minlength and minLength as a way to add a minimum length validator Because it is so easy to typo
Spot the bug 🐛 in this Mongoose schema! 👀 What’s wrong with the code below? 👉 Bonus: How would you fix it? A) Missing closing curly brace } in the schema B) Wrong export syntax C) mongoose.model should use lowercase user instead of 'User' D) Nothing is wrong #100DaysOfCode
3
286
🌟
My dream when I started @vercel was to build the organization where open source builders could thrive. After starting socket.io, @mongoosejs, and of course @nextjs, it's a true honor to now be able to support builders like the @nuxt_js and @sveltejs teams. This is our commitment to open source and our broader community:
769
5M weekly downloads 🤯
1
7
1,166
New blog post about comparing and sorting arrays in @MongoDB 👇🏼 It's a long story with a short conclusion to help remind it dev.to/franckpachot/mongodb-…
1
7
25
2,343