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

Miami Beach, FL
mongoosejs retweeted
Introducing the official MongoDB for Developers YouTube channel! ✨ From beginner tutorials to comprehensive technical analysis, get NEW resources weekly to level up with the MongoDB data platform. Subscribe: mongodb.social/6019her79
1
7
18
2,285
mongoosejs retweeted
Check out the dependency tower for mongoose! 🏗️ app.stacktower.io?render=24a… via @stacktower
1
4
258
Neat use of change streams 👇
Mongoose Studio v0.2.10 released, now with a "Auto-Refresh" option on the document details page. Auto refreshes the document when it changes. Uses @MongoDB change streams under the hood 😎 Save your F5 key! github.com/mongoosejs/studio…
1
153
🚨 Mongoose Tip! 🚨 Using `default: null`? Think again! Setting a field to `default: null` forces you to serialize that property in JSON, which can harm performance. Just leave it undefined! Less bloat, better efficiency. Your future self will thank you! 💪💻
1
95
🚀 Pro tip for Mongoose devs: Use the `pre('save')` hook to update computed properties only when necessary, especially when dealing with API calls! Check out how we update shipstationShippingOptions based on changes to the cart items, city, state, or zip.
1
115
🚀 Version 9.1.4 is here! 🔧 Fixed session attachment to docs retrieved by cursor 🔍 Enhanced `hydrate()` to handle nested schema arrays 🔄 Resolved issues with parent docs in map & array subdocuments Check out the full changelog for more details! github.com/Automattic/mongoo…
3
103
🚀 Version 9.1.3 is here! 🔧 Fix for `insertMany()` to support timestamps option 🔍 Enhanced error previews for query updates 📝 Improved type casting for subdocument paths Check out the full changelog! github.com/Automattic/mongoo…
1
84
🚀 Pro tip: Did you know that when you upsert, MongoDB handles nested paths with grace? Check this out! 👇 Delightful DX like this is what sets MongoDB apart. You never need to initialize nested objects manually!
1
3
175
🚀 Mongoose 9.1.2 is here! 🔧 Fixed subdocument pre-save hook options handling ⚡ Improved performance by selecting only _id during document existence checks on save() Check out the complete changelog for more details! github.com/Automattic/mongoo…
2
77
Mongoose 8.21.0 released ⭐️ Add support for getAtomics() to allow custom container types to utilize atomics ⭐️ Pass options to pre('deleteOne') and update+options to pre('updateOne') hooks github.com/Automattic/mongoo…
4
115
The better question is: is there any reason to use SQL now that all common databases support transactions? MongoDB is the default choice for modern applications. You better have a good reason to use something else 😎
Besides horizontal scalability, is there any other reason to use MongoDB when all common databases support JSON in the database?
3
3
847
If you ever wished your MongoDB GUI knew about your Mongoose schemas this is for you 👇
🎄 Mongoose Studio Advent — Day 17 🎁 v0.1.17 is out with a nicer document viewer: • Arrays now show a smart preview (no more giant JSON blobs) • Index badges for array items • Search + highlight virtuals and schema fields as you type mongoosestudio.app/changelog…
164
Pro tip: use `uppercase: true` instead of writing your own setters And make sure to handle null and undefined correctly if your setter is on a non-required field Recommended pattern: ``` set: v => v == null ? v : myTransform(v) ```
2
105