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

Miami Beach, FL
Virtuals are a great tool for convenience wrappers around complex properties Here's a virtual for sales tax in an ecom application. The sales tax is stored in `lineItems` array, but the `salesTax` virtual lets you read/write as if it were a property #JavaScript #CodeNewbie
1
2
6
584
mongoosejs retweeted
Mongoose 8.0.4 released; it's a big one, with 5 bug fixes and 4 typescript improvements 🛠️ Set CastError path to full path if casting update fails 🛠️ Allow defining index on base model that applies to all discriminators Full changelog: github.com/Automattic/mongoo… #NodeJS #MongoDB
1
2
7
321
Mongoose 7.6.8 released: 🛠️ Handle reusing schema with embedded discriminators defined using Schema.prototype.discriminator Full changelog: github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
1
227
Mongoose 6.12.5 released: 🏎️ Remove unnecessary lookahead in numeric subpath check 🛠️ Allow setting nested path to null Full changelog: github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
1
259
Mongoose 5.13.22 (legacy) released 🏎️ Remove unnecessary lookahead in numeric subpath check 🛠️ Allow setting nested path to null Full changelog: github.com/Automattic/mongoo… Reminder: Mongoose 5 EOL is March 1, 2024 #NodeJS #MongoDB #JavaScript
1
1
226
Mongoose 6.12.4 (legacy) released: 🛠️ Upgrade mongodb driver to 4.17.2 🛠️ Avoid treating nested projection as inclusive when applying defaults Full changelog: github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
1
3
356
mongoosejs retweeted
Mongoose 8.0.3 released: 🛠️ Avoid creating unnecessary clone of schematype in nested array so nested document arrays use correct constructor 📖 Add example of registering connection event handlers github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
2
5
325
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
77
Mongoose 7.6.7 released 🛠️ Avoid minimizing single nested subdocs if they are required 🛠️ Allow deselecting discriminator key when populating github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
1
3
220
Better late than never: the Mongoose 8 announcement blog post is up! Check it out 👉 thecodebarbarian.com/introdu… #NodeJS #MongoDB #JavaScript
1
1
1
282