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

Miami Beach, FL
mongoosejs retweeted
Mongoose 6.1 introduced the ability to populate partially denormalized subdocs. Learn more about populate 👉 mongoosejs.com/docs/populate… #NodeJS #MongoDB #JavaScript
1
3
7
mongoosejs retweeted
Mongoose's `syncIndexes()` function ensures your schema indexes line up with your MongoDB indexes 🗑️ Cleans up unused indexes ➕ Adds indexes that haven't been added yet `await mongoose.syncIndexes()` syncs indexes for all models 👉 mongoosejs.com/docs/api.html… #NodeJS #MongoDB
1
2
6
mongoosejs retweeted
Mongoose 6.2.3 released: 🛠️ Avoid dropping base model indexes when using discriminators with Connection.prototype.syncIndexes() 🛠️ Handle array defaults when selecting element underneath array github.com/Automattic/mongoo… #JavaScript #MongoDB #NodeJS
1
3
14
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
Mongoose 6.2.1 released: 🏎️ Improve performance especially of validate and clone 🛠️ Handle initing nested properties in non-strict documents Full changelog: github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
2
4
mongoosejs retweeted
Hate translating API response properties to local property names? Try Mongoose aliases! For example, here's how we use aliases to convert GitHub's `avatar_url` to `avatar` b/c we use camelCase for prop names #NodeJS #MongoDB #JavaScript
1
2
9
mongoosejs retweeted
Mongoose 6.1.9 includes a fix that makes Mongoose use nested schema's `strict` mode when casting query filters. Learn more about query casting in Mongoose 👉 mongoosejs.com/docs/tutorial… #NodeJS #MongoDB #JavaScript
2
2
4
mongoosejs retweeted
Mongoose 6.1.9 released: 🛠️ Respect nested schema strict as default when casting query filters 🛠️ Make isValidObjectId() consistent with isValid(), make ObjectId() casting more flexible github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
2
6
Writing a script to seed your dev database with Mongoose? Consider using upserts rather than inserts. That way, accidentally double-seeding doesn't duplicate data masteringjs.io/tutorials/mon… #MongoDB #JavaScript #NodeJS
2