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

Miami Beach, FL
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
mongoosejs retweeted
Mongoose 6 throws an error by default when you try to `populate()` a path that isn't in your schema. But you can opt out using `strictPopulate`. Learn more 👉 mongoosejs.com/docs/migratin… #NodeJS #MongoDB #JavaScript
1
1
4
Using Mongoose with NestJS? Make sure you define props using `@Prop({ type: String })`, not `@Prop(String)` There are known issues with the latter syntax, see github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
2
3
mongoosejs retweeted
Mongoose 6.1.7 released: 🛠️ Correct handling for $push on a nested array 🛠️ Correctly apply timestamps to update pipelines Full changelog: github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
1
7
mongoosejs retweeted
We're always amazed at how geographically distributed Mongoose contributors are. In v6.1.6, we accepted contributions from developers in: 🇩🇪 Germany 🇪🇬 Egypt 🇱🇰 Sri Lanka 🇲🇪 Montenegro 🇧🇷 Brazil 🇪🇸 Spain 🇮🇳 India #JavaScript #MongoDB #NodeJS
2
4
9
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
mongoosejs retweeted
We recommend **not** using `extends Document` with document interfaces in TypeScript. Learn more 👉 mongoosejs.com/docs/typescri… #NodeJS #MongoDB
1
2
8
Mongoose queries have a `slice()` method that's a shorthand for MongoDB's `$slice` operator. `slice()` helps you project out parts of arrays in your documents: docs.mongodb.com/manual/refe… #NodeJS #MongoDB #JavaScript
1
mongoosejs retweeted
Although you can `await` on a Mongoose query without calling `exec()`, we still recommend calling `exec()` for cleaner stack traces. If you use `exec()`, you at least get the line number you called `find()` on if there's a CastError. #JavaScript #MongoDB #NodeJS
1
2
4
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…