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

Miami Beach, FL
Got a document that you don't want to ever show up in the frontend? You can create a custom `toJSON()` method on your schema, which determines how that document gets serialized to JSON. #NodeJS #MongoDB
1
3
11
mongoosejs retweeted
Mongoose 6.6.0 released ⭐ Upgrade mongodb driver -> 4.9.1 ⭐ Re-export default Mongoose instance properties for ESM named imports support Full changelog: github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
2
11
mongoosejs retweeted
Mongoose 6.5.5 released 🛠️ Avoid applying defaults on insert if nested property set 🛠️ Make applyHooks() and applyMethods() handle case where custom method is set to Mongoose implementation Full changelog: github.com/Automattic/mongoo… #NodeJS #MongoDB #JavaScript
1
1
8
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
mongoosejs retweeted
Mongoose arrays have a convenient `pull()` function that removes values from an array. No need to `filter()` and reassign, just use `pull()`. #NodeJS #JavaScript
1
4
11
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
1
We make heavy use of Mongoose custom validators in our apps for quick sanity checks. For example, `age < 200` (sorry Methuselah), `percent > 0 && percent < 1`, etc. #JavaScript #CodeNewbie
1
4
mongoosejs retweeted
Mongoose 6.4 automatically infers document types from your schema definitions. No need to define document interfaces anymore! #JavaScript #TypeScript
1
2
16
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
Mongoose 6 was released August 24! Check out the migration guide: mongoosejs.com/docs/migratin…
mongoosejs retweeted
Mongoose's `orFail()` function is great for avoiding repetitive `if (doc == null)` checks. Makes your query throw an error if no results Learn more 👉 mongoosejs.com/docs/api/quer… #NodeJS #MongoDB
2
4
8
Love Mongoose? Consider supporting Mongoose development on GitHub sponsors! github.com/sponsors/mongoose…
2