API with NestJS #33. Managing PostgreSQL relationships with Prisma. We learn about various types of relationships and implement them with PostgreSQL and Prisma. We learn about various types of relationships and implement them with Postgres. The seventh part of this series, we use Prisma.
As applications grow, the number of different entities also increases. A crucial part of learning how to design a database is creating relationships between them. This is because our entities will often relate to each other in some way.
Relational databases such as PostgreSQL are an industry standard for quite some time now. Although there are NoSQL alternatives such as MongoDB, SQL might still be considered a better choice, especially for structured data that contains a lot of relations.
In this article, we learn about various types of relationships and implement them with Postgres. Instead of using TypeORM as we did in the seventh part of this series, we use Prisma.
Throughout the article, we often use functionalities developed in other parts of this series. If you want to see the full code, you can find it in this repository.
Building Modern Nodejs Application using Nestjs and TypeScript - In this article, we will see how to build REST API using Nestjs with TypeScript. Building Modern Nodejs Application using Nestjs and TypeScript