Relations in Prisma.
Relation in prisma is defined as the inter-connection between two models in Prisma schema. For example, if we have a model named User and another named Post, then one user can have many number of posts associated with him/her. It represents 1 to many relation in Prisma. There are three types of relations in Prisma. … Read more
How to install Prisma in NestJS ?
Prisma is an open-source ORM for Node.js and TypeScript. It is a next-generation node.js and typescript ORM. It is used as an alternative to writing plain SQL or using another database access tool such as SQL query builders. While Prisma can be used with plain JavaScript, it embraces TypeScript and provides a level to type safety that goes beyond the guarantees … Read more