nestjs-ioredis
nestjs-typegoose
nestjs-ioredis | nestjs-typegoose | |
---|---|---|
1 | 2 | |
26 | 286 | |
- | - | |
3.9 | 0.0 | |
3 months ago | 24 days ago | |
TypeScript | TypeScript | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nestjs-ioredis
-
which redis should I use?
I also reviewed options on GitHub and this one (nestjs-ioredis) seems to have a cleaner API and also (important in my case) enables you to have multiple (named) connections to different Redis nodes.
nestjs-typegoose
- Is it possible to generate Mongoose schemas?
-
On Nestjs
As much as I don't like to use it, there are people who decide that NoSQL and MongoDB are the way to go for their application. Before v7, Nest didn't provide it's own decorators for a mongoose integration, and developers had to use the standard schema approach. While there's nothing wrong with this, it definitely does bring in some pain points when it comes to types and DTOs, so a SchemaFactory was created to allow developers to keep using classes to define their mongoose schemas. This works pretty well, but does admittedly lack some features, like virtuals and static methods. These can be added to the generated schema, but Typescript will not know about them. I usually suggest people use nestjs-typegoose instead of Mongoose/Typegoose integration with NestJS.
What are some alternatives?
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
MikroORM - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.
typeorm - TypeORM module for Nest framework (node.js) 🍇
prisma1 - 💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated]
passport - Passport module for Nest framework (node.js) 🔑
crud - NestJs CRUD for RESTful APIs
graphql - GraphQL (TypeScript) module for Nest framework (node.js) 🍷
nx-node-apollo-grahql-mongo - Nx Nodejs Apollo - TypegraphQL / GraphQL / Express / MongoDB - Typegoose API Boilerplate
docs.nestjs.com - The official documentation https://docs.nestjs.com 📕
mongoose-tsgen - A plug-n-play Typescript interface generator for Mongoose.
typegoose - Typegoose - Define Mongoose models using TypeScript classes.