Medium
medium.com โบ @tekrajpant224 โบ develop-graphql-api-server-with-nestjs-prisma-and-postgresql-37d26e85fc27
Create GraphQL API with NestJS, Prisma, and PostgreSQL | by Tek Raj Pant | Medium
September 5, 2023 - Install prisma-nestjs-graphql with npm install --save-dev prisma-nestjs-graphql
nestjs - How can I use Prisma types on a nest.js GraphQL query argument - Stack Overflow
There are packages that generate classes from prisma schema, like prisma-nestjs-graphql which i've been using recently. More on stackoverflow.com
Anybody using NestJS along Prisma and GraphQL? How is your experience with it? do you recommend it ?
Hey there, I work at Prisma and wanted to chime in with some resources and offer help in case you have any specific questions about how Prisma and NestJS work together (we created this page to give a high-level overview of that, this could be a good starting point). My colleague also recently gave a really comprehensive Letโs build a REST API with NestJS and Prisma workshop (~90min) that covers Prisma and NestJS fundamentals, how to build a REST API and document it using Swagger as well as data validation and error handling. The same colleague is also currently publishing an article series on our blog, here's the first article . Note that other TypeORM is often used as the default ORM in NestJS, you can read a comparison about the two in our docs (where we e.g. explain how Prisma can provide much stronger type-safety guarantees compared to TypeORM). Here's also a nice article from a developer who explains why and how they migrated a large production NestJS app from TypeORM to Prisma. Let me know if you have any questions about Prisma, always happy to help! More on reddit.com
Library for NestJS GraphQL and Zod
Hey u/incetarik , this library is perfect for what we want to do, which is using zod schema as the sources of truth to scaffold (with customisation) dynamodb models, gql object types and input types, compose various combinations of these with partial/omitted fields etc and export this goodness for the front-end in the monorepo as well. This is an absolute killer pattern imo. I'm having trouble with compiling under ts@4.9.5, however. Simply using any of the exports of this library throws errors on types `Mapper` and `MapKeys` being undefined. node_modules/nestjs-graphql-zod/dist/model-from-zod.d.ts:74:84 - error TS2304: Cannot find name 'Mapper'.74 export interface IModelFromZodOptionsWithMapper = Mapper> extends IModelFromZodOptions {~~~~~~node_modules/nestjs-graphql-zod/dist/model-from-zod.d.ts:74:96 - error TS2304: Cannot find name 'Mapper'.74 export interface IModelFromZodOptionsWithMapper = Mapper> extends IModelFromZodOptions {~~~~~~node_modules/nestjs-graphql-zod/dist/model-from-zod.d.ts:86:49 - error TS2304: Cannot find name 'Mapper'.86 type Options = Mapper> = IModelFromZodOptionsWithMapper & {~~~~~~node_modules/nestjs-graphql-zod/dist/model-from-zod.d.ts:86:61 - error TS2304: Cannot find name 'Mapper'.86 type Options = Mapper> = IModelFromZodOptionsWithMapper & {~~~~~~node_modules/nestjs-graphql-zod/dist/model-from-zod.d.ts:98:13 - error TS2304: Cannot find name 'MapKeys'.98 new (): MapKeys; I see they are defined in `types.d.ts`, but not imported or defined in any of the dist files. Importing anything directly from the src directory still yields the same problem. I'm reasonably new to typescript, would be awesome if you could comment, I've surely walked into similar problems before. My tsconfig: "compilerOptions": {"include": ["src/**/*.ts"],"exclude": ["node_modules/**/*"]"experimentalDecorators": true,"lib": ["ESNext", "DOM", "DOM.Iterable"],"moduleResolution": "node","noUnusedLocals": false,"noUnusedParameters": false,"removeComments": true,"sourceMap": true,"outDir": "dist","module": "commonjs","esModuleInterop": true,"declaration": true,"emitDecoratorMetadata": true,"allowSyntheticDefaultImports": true,"target": "ES2020","incremental": true,"alwaysStrict": true,"strictNullChecks": true,"resolveJsonModule": true,} More on reddit.com
Nest JS with Prisma and CASL Example
Here: https://cs.github.com/?scopeName=All+repos&scope=&q=%22%40casl%2Fprisma%22+%22%40nestjs%22+path%3Apackage.json I found this two repos: https://github.com/ZenSoftware/zen https://github.com/creatorsgarten/eventkit More on reddit.com
13:38
How to Use Graphql in NestJS with Prisma + Postgres - YouTube
33:20
How To Get Started With NestJS, GraphQL, Prisma | Building An API ...
14:09
How to Use GraphQL SubSCRiptions in NESTJS + PRISMA + POSTGRES ...
02:41:26
I cloned TeamSeas.org using GraphQL, Prisma, NestJS, React, and more!
54:46
Prisma 2 Impressions with NestJS | Next-gen Node.JS ORM?! - YouTube
GitHub
github.com โบ unlight โบ nestjs-graphql-prisma-realworld-example-app
GitHub - unlight/nestjs-graphql-prisma-realworld-example-app: Example real world application built with NestJS, Prisma and GraphQL ยท GitHub
Example real world application built with NestJS, Prisma and GraphQL - unlight/nestjs-graphql-prisma-realworld-example-app
Starred by 108 users
Forked by 26 users
Languages ย TypeScript 95.6% | JavaScript 3.0% | Shell 1.2% | Dockerfile 0.2%
npm
npmjs.com โบ package โบ prisma-nestjs-graphql
prisma-nestjs-graphql - npm
May 30, 2026 - If imported module has internal namespace, this allow to generate named import, imported name will be equal to {namespace}, see example of usage Type: boolean Default: false ... generator nestgraphql { fields_Validator_from = "class-validator" fields_Validator_input = true } model User { id Int @id /// @Validator.MinLength(3) name String } ... import { InputType, Field } from '@nestjs/graphql'; import * as Validator from 'class-validator'; @InputType() export class UserCreateInput { @Field(() => String, { nullable: false }) @Validator.MinLength(3) name!: string; }
ยป npm install prisma-nestjs-graphql
Published ย May 11, 2025
Version ย 21.2.0
GitHub
github.com โบ unlight โบ prisma-nestjs-graphql
GitHub - unlight/prisma-nestjs-graphql: Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module ยท GitHub
May 30, 2026 - ... import { GraphQLBigInt } from 'graphql-scalars'; export class BigIntFilter { @Field(() => GraphQLBigInt, { nullable: true }) equals?: bigint | number; } It will affect all inputs and outputs types (including models).
Starred by 572 users
Forked by 86 users
Languages ย TypeScript
Webscale
section.io โบ home โบ blog
Webscale Blog: Insights on AI & Commerce | Webscale
June 9, 2025 - Get the latest insights on AI, personalization, infrastructure, and digital commerce from the Webscale team and partners.
Tomray
tomray.dev โบ nestjs-prisma
Ultimate Guide: How to use Prisma with NestJS - Tom Ray
November 29, 2022 - In the above code, we have defined the GraphQL object type for a Tweet, using the same fields we defined in the Tweet database table with Prisma. Note how I've also leveraged the auto-generated Prisma types too (I had to rename the import to prevent the conflict)! Now let's update the resolver to use this object type and also use our TweetsService: ... import { Query, Resolver } from '@nestjs/graphql'; import { Tweet } from 'src/modules/tweets/tweets.model'; import { TweetsService } from 'src/modules/tweets/tweets.service'; @Resolver() export class ApiResolver { constructor(private readonly tweetsService: TweetsService) {} @Query(() => [Tweet]) async getTweets() { return this.tweetsService.getTweets(); } }
GitHub
github.com โบ bensiu123 โบ nest-prisma-graphql-example
GitHub - bensiu123/nest-prisma-graphql-example: A simple example of using Nest.js, Prisma, and GraphQL. ยท GitHub
This project is a simple example of using Nest.js, Prisma, and GraphQL. It is to investigate the possibility to use Prisma to replace Mongoose when using MongoDB as database. It is because type-safety of Mongoose is week when using TypeScript.
Author ย bensiu123
GitHub
github.com โบ notiz-dev โบ nestjs-prisma-starter
GitHub - notiz-dev/nestjs-prisma-starter: Starter template for NestJS ๐ป includes GraphQL with Prisma Client, Passport-JWT authentication, Swagger Api and Docker
# building new NestJS docker image ... the following two commands: npx prisma generate # or in watch mode npx prisma generate --watch # or npm run prisma:generate npm run prisma:generate:watch ......
Starred by 2.5K users
Forked by 366 users
Languages ย TypeScript 96.7% | JavaScript 1.8% | Dockerfile 1.3% | Shell 0.2%
GitHub
github.com โบ gabriel-roque โบ nestjs-graphql-prisma
GitHub - gabriel-roque/nestjs-graphql-prisma: ๐๏ธ Example project with NestJS, GraphQL and Prisma (Auth, Email and Storage features)
๐๏ธ Example project with NestJS, GraphQL and Prisma (Auth, Email and Storage features) - gabriel-roque/nestjs-graphql-prisma
Author ย gabriel-roque
YouTube
youtube.com โบ watch
Nest JS Graphql with Prisma ORM #07 - YouTube
Nest JS with GraphqlIn this playlist, we are going to cover a lot of things related to nestjs and graphqlCode showing nestjs graphql with Postgres, mongoose ...
Published ย April 22, 2022
Medium
medium.com โบ @shkim04 โบ nestjs-graphql-prisma-postgresql-set-up-6cc76a624bde
NestJS GraphQL/Prisma/PostgreSQL Set Up | by Seunghyun Kim | Medium
August 2, 2023 - It will show all the tables we have defined in Prisma schema file. GraphQL is a query language for APIs. Unlike REST API, we do not have to retrieve data that we do not need. In other words, we can specify fields that we want to get as a response from an API based on our needs. Conveniently, there is the built-in @nestjs/graphql module in NestJS.
GitHub
github.com โบ Qu1etboy โบ nestjs-prisma-graphql
GitHub - Qu1etboy/nestjs-prisma-graphql: An example of how to used Nest.js with Prisma and GraphQL
// src/prisma/prisma.module.ts import { Global, Module } from '@nestjs/common'; import { PrismaService } from './prisma.service'; @Global() @Module({ providers: [PrismaService], exports: [PrismaService], }) export class PrismaModule {} Don't forget to import PrismaModule to app.module.ts ยท Now for our main part GraphQL, install required dependencies as followed.
Author ย Qu1etboy
Medium
karthickragavendran.medium.com โบ nestjs-prisma-typescript-robust-and-powerful-graphql-apis-in-less-than-a-day-d55cf6e6e987
NestJS + Prisma + Typescript = Robust, and Powerful GraphQL APIs in less than a day. | by Karthick Ragavendran | Medium
August 14, 2023 - Next time you come across a Graphql API tutorial, notice how extensive the filtering and sorting capabilities of that. 90% of the tutorials don't go beyond implementing skip and limit arguments. Thanks for reading. Code: https://github.com/karthickthankyou/nestjs-prisma-simple-graphql-api
Amplication
amplication.com โบ blog โบ how-to-build-a-nodejs-graphql-api-with-nestjs-and-prisma
How to Build a Node.js GraphQL API With NestJS and Prisma
NestJS is a powerful framework specifically designed for building Node.js applications, while Prisma is an ORM tool that provides a type-safe API for querying databases in Node.js. This article aims to provide insights on building a Node.js GraphQL API using NestJS and Prisma while addressing some of the most frequently asked questions about these technologies.
GitHub
github.com โบ quinnjr โบ nestjs-prisma-graphql
GitHub - quinnjr/nestjs-prisma-graphql: Generate NestJS GraphQL types from Prisma schema - ESM-first for Prisma 7+ ยท GitHub
Generate NestJS GraphQL types from Prisma schema - ESM-first for Prisma 7+ - quinnjr/nestjs-prisma-graphql
Author ย quinnjr