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

Miami Beach, FL
The `syncIndexes()` function ensures that the indexes in the db are the same as the indexes in your schema For discriminators, syncIndexes only syncs the indexes defined on the discriminator schema, not the base schema More on syncIndexes 👉 mongoosejs.com/docs/api.html… #MongoDB
1
3
mongoosejs retweeted
Mongoose 6.2.7 released 🏎️ Avoid running validation on every array element if there's no validators to run 🛠️ Correctly populate in batches when batchSize is set Full changelog: github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
5
8
Pro tip: if you use separate npm modules to share schemas between projects, list Mongoose as a `peerDependency` of the shared schemas lib If you can't, wrap shared schemas in `new Schema()` to avoid "different copy of Mongoose" errors #NodeJS #MongoDB #JavaScript
1
2
3
mongoosejs retweeted
We're shipping a neat perf improvement in v6.2.7. Looks like a 35% speedup in our basic benchmark (saving a new document with a big array of primitives) counting network round trip #NodeJS #MongoDB #JavaScript
1
1
11
mongoosejs retweeted
Need to reuse a schema in another schema? You can pass an array of schemas or schema defs to the `Schema()` constructor to reuse schemas Learn more 👉 mongoosejs.com/docs/api/sche… #NodeJS #MongoDB #JavaScript
1
3
9
mongoosejs retweeted
Mongoose 6.2.6 released: 🛠️ Correct reference to cursor TypeScript bindings 🛠️ Allow calling Query.prototype.populate() with array of strings Full changelog: github.com/Automattic/mongoo… #JavaScript #NodeJS #MongoDB
1
2
10
Read my latest: “Mongoose Monthly Feb 2022: Mongoose 6.2, Pro Subscription” getrevue.co/profile/mongoose…
1
mongoosejs retweeted
Mongoose 6.2.4 released: 🛠️ Correctly return full deleteOne(), deleteMany() result 🛠️ Handle update validators on deeply nested subdocuments Full changelog: github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
5
6