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

Miami Beach, FL
Mongoose 8.12.2 released 🛠️ Avoid stripping out fields in discriminator schema after select: false field 🛠️ Make next() error if schema pre('aggregate') middleware throws error Full changelog: github.com/Automattic/mongoo…
4
86
Mongoose 9 update: we're making async stack traces better in by ensuring our most important functions (save(), etc) run through async functions. Debugging Mongoose apps is about to get a lot easier! 🚀 github.com/Automattic/mongoo…

ALT easy GIF

8
116
Mongoose 8.11.0 released! 🌟 Add schemaFieldsOnly option to toObject() and toJSON() 🌟 Introduce populate ordered option for populating in series rather than in parallel for transactions 🛠️ Throw error when casting BigInt that's outside of MongoDB limits github.com/Automattic/mongoo…
4
92
So cool to see the ACM producing Mongoose courses Yes, we did ICPC in college. No we didn't make it to worlds 😢
Now available for ACM Members: "The Complete Developer: Master the Full Stack with TypeScript, React, Next.js, MongoDB, and Docker," by Martin Krause. Go from a @reactjs-driven frontend to a fully fleshed-out backend w/@mongoosejs, @MongoDB, & a... share.percipio.com/cd/fdpXCO…
3
147
Mongoose 8.10.1 released 🏎️ Clear childSchemas when overwriting existing path to avoid performance degradations 🛠️ Avoid adding timeout on Model.init() buffering to avoid unintentional dangling open handles github.com/Automattic/mongoo…
6
216
Debugging perf issues is like a game of roulette where either everything feels 10x snappier or breaks horribly Luckily you eventually end up at the former: github.com/Automattic/mongoo…

ALT Happy Season 15 GIF by The Simpsons

2
101
They tell us 2025 is the Year of the Snake We prefer to think that 2025 is the Year of the Mongoose Lots of cool stuff coming this year, stay tuned 😎
4
91
On the topic of separation of concerns vs locality of behavior, here's an example where we chose SoC (each child class has a toJSONSchema() method) over LoB (_schemaTypeToJSONSchema function that has case statements for each child class) github.com/Automattic/mongoo…

ALT Scooby Doo Fred GIF

1
1
2
143
New Schema#jsonSchema() method is not just for MongoDB's $jsonSchema. It is also compatible with validation libs like Ajv 😎
1
3
157
Mongoose populate is spectacularly flexible We've been working with Mongoose for nearly 15 years and still find neat new features TIL you can return null from `localField` to skip attempting to populate malformed docs
1
5
157
We recently moved mongoosejs.com's docs search backend from Azure Functions to @Netlify functions 😎 Try it out and let us know if you spot any issues Here's the source code: github.com/mongoosejs/backen…
5
1,021