NestJs with GraphQL and Prisma
Step by Step guide to build GraphQL APIs with NestJs, Prisma and Apollo server
Created by Haider Malik | 2.5 hours on-demand video course
Prisma is an open-source ORM for Node.js and TypeScript. It is used as an alternative to writing plain SQL, or using another database access tool such as SQL query builders (like knex.js) or ORMs (like TypeORM and Sequelize). Prisma currently supports PostgreSQL, MySQL, SQL Server, SQLite, MongoDB and CockroachDB
While Prisma can be used with plain JavaScript, it embraces TypeScript and provides a level to type-safety that goes beyond the guarantees other ORMs in the TypeScript ecosystem. You can find an in-depth comparison of the type-safety guarantees of Prisma and TypeORM.
Prisma is a next-generation ORM that can be used to query a database in NestJS apps. It embraces TypeScript to avoid runtime errors and improve productivity. The type-safety it provides goes far beyond the guarantees of traditional ORMs like TypeORM or Sequelize. Prisma integrates smoothly with the modular architecture of NestJS, no matter if you’re building REST or GraphQL APIs. It is typically used within your NestJS services to fulfill the data needs of the controllers
What you’ll learn
- Creating GraphQL Server with NestJs
- Basics of GraphQL
- Creating CRUD(Create, Read, Update, and Delete) Operations with Prsima, NestJs and Postgres
- Creating GraphQL Server with Nestjs and Apollo
Recommended Course