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

Miami Beach, FL
Want to reuse part of a Mongoose schema in another schema? Use `Schema.prototype.pick()` Just make sure to also `excludeIndexes` to avoid unnecessary index builds! Learn more 👉 mongoosejs.com/docs/api/sche… #NodeJS #MongoDB #JavaScript
1
5
8
903
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
120
mongoosejs retweeted
Mongoose 6.8.4 released 🛠️ Handle creating model when connection disconnected with bufferCommands = false 🛠️ Merge instead of overwrite when match is on _id github.com/Automattic/mongoo… #NodeJS #MongoDB
1
1
8
503
Mongoose 6.8.4 released 🛠️ Handle creating model when connection disconnected with bufferCommands = false 🛠️ Merge instead of overwrite when match is on _id github.com/Automattic/mongoo… #NodeJS #MongoDB
1
1
8
503
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
104
Mongoose getters don't allow passing parameters the conventional way, because you don't call getters as a function But you can configure your getters using Mongoose documents' `$locals` property Learn more 👉 mongoosejs.com/docs/tutorial… #NodeJS #MongoDB
1
181
Mongoose's query docs now have a section on sorting, check it out and let us know what you think! mongoosejs.com/docs/queries.… #NodeJS #MongoDB
1
129
mongoosejs retweeted
Mongoose's docs search now support searching by major version. That means you can now search just the 5.x docs 😎 #NodeJS #MongoDB
1
1
6
389
Mongoose's docs search now support searching by major version. That means you can now search just the 5.x docs 😎 #NodeJS #MongoDB
1
1
6
389
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
98
By default, Mongoose doesn't let you update a document's discriminator key However, queries have an `overwriteDiscriminatorKey` option that you can set to allow changing the discriminator key Learn more 👉 mongoosejs.com/docs/discrimi… #NodeJS #MongoDB
248
mongoosejs retweeted
Mongoose 6.8.3 released 🏎️ Improve performance of assignRawDocsToIdStructure for faster populate on large docs 🛠️ Ensure consistent ordering of validation errors in insertMany() Full changelog: github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
2
6
518
You can call `Model.create()` with options, like a session for transactions But to do that, you _must_ pass an array as the first arg Learn more 👉 mongoosejs.com/docs/api/mode… #NodeJS #MongoDB
1
2
307
Mongoose 6.8.3 released 🏎️ Improve performance of assignRawDocsToIdStructure for faster populate on large docs 🛠️ Ensure consistent ordering of validation errors in insertMany() Full changelog: github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
2
6
518
Pro tip: avoid connecting to MongoDB in your serverless function until _after_ you've validated the input Save yourself an unnecessary connection More about Mongoose and Lambda 👉 mongoosejs.com/docs/lambda.h… #JavaScript #CodeNewbie
2
4
652
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
188
mongoosejs retweeted
Mongoose 6.8.1 released: 🛠️ Avoid throwing circular dependency error if same object is used in multiple properties 🛠️ Return value from super.delete() in Map Full changelog: github.com/Automattic/mongoo… #NodeJS #JavaScript #MongoDB
1
1
8
409
Mongoose 6.8.1 released: 🛠️ Avoid throwing circular dependency error if same object is used in multiple properties 🛠️ Return value from super.delete() in Map Full changelog: github.com/Automattic/mongoo… #NodeJS #JavaScript #MongoDB
1
1
8
409
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
131