nestjs-objection
nestjs-objection | nest-repository-pattern | |
---|---|---|
2 | 1 | |
135 | 6 | |
- | - | |
9.6 | 10.0 | |
4 days ago | over 1 year ago | |
TypeScript | TypeScript | |
Apache License 2.0 | - |
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-objection
-
Exploring the repository pattern with TypeScript and Node
Next, let’s set up the database for our newly created Nest application. I’ll be using PostgreSQL, but you can use any of the databases Knex supports. To interact with our database, we’ll be using Objection.js, which is an ORM for Node.js built on top Knex. For this tutorial, we’ll be using Nest Objection, a Nest module for Objection.
- Raw SQL or ORM?
nest-repository-pattern
-
Exploring the repository pattern with TypeScript and Node
You can get the complete source code for our demo from this GitHub repository.
What are some alternatives?
typed-knex - A TypeScript wrapper for Knex.js
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
objection-authorize - isomorphic, "magical" authorization integration with Objection.js 🎉
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
knex-types - Generate TypeScript definitions (types) from a PostgreSQL database schema.
Objection.js - An SQL-friendly ORM for Node.js
knex-relay-cursor-pagination - Easy Relay cursor-pagination for Knex queries
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.
azure-database - Azure CosmosDB Database module for Nest framework (node.js) ☁️