🌐
Jelani Harris
jelaniharris.com › blog › building-a-graphql-api-with-nestjs-and-prisma
Building a GraphQL API with NestJS and Prisma | Jelani Harris
June 9, 2024 - In this tutorial I will show you how to create a GraphQL API using Nest.JS with a Prisma.IO database. In my recent project at work we are using all three of…
Discussions

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
🌐 r/Nestjs_framework
1
14
August 30, 2022
Integrating Sentry for GraphQL and Postgres Query Performance Monitoring in a React/Node.js Stack
I don't think Sentry has a direct integration with Postgres. What you could do though is wrap your backend calls to the DB in sentry and measure query performance from the APIs perspective. If you want E2E performance capturing, integrate sentry on your UI and correlate the GQL calls to the API calls. We use Apollo on our UI and use this plugin to use sentry with GQL: https://github.com/DiederikvandenB/apollo-link-sentry More on reddit.com
🌐 r/reactjs
9
2
November 21, 2023
Writing filters, sorting and pagination for all my queries is exhausting and repetitive. Is there a better way?
Did you went schema-first approach like manually writing your schema instead of being generated? Have you looked at code-first approach. In this way, repetitive filters can have a function generating schema types and you don't have to write it manually for every query or as mutation arg. I'm not familiar with other languages though and just JS. If you're going the JS route, checkout Pothos GraphQL. More on reddit.com
🌐 r/graphql
7
4
October 9, 2023
Dataloaders + GraphQL Shield with Apollo Server and NestJS
You can write a custom data loader that uses the incoming requestID as part of its batch key. On each request, setup the data loader in the request context so it’s created new each time and keyed to that specific request/user. More on reddit.com
🌐 r/graphql
8
3
September 2, 2023
🌐
Escape Tech
escape.tech › blog › tutorial › guide to handling relational databases with prisma, nestjs and graphql
Guide to relational databases with NestJS, Prisma & GraphQL
October 30, 2024 - Learn how to implement GraphQL API to interact with relational databases using NestJS, Prisma ORM, and Apollo server for efficient querying.
🌐
Amplication
amplication.com › blog › build-a-nodejs-graphql-api-with-nestjs-and-prisma
Build a Node.js GraphQL API with NestJS and Prisma - Amplication
Learn how to build a Node.js GraphQL API using NestJS and Prisma and how to generate a GraphQL API for your next application using open-source technology.
🌐
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.
🌐
NestJS
docs.nestjs.com › recipes › prisma
Prisma | NestJS - A progressive Node.js framework
Note If you want to get a quick overview of how Prisma works, you can follow the Quickstart or read the Introduction in the documentation. There also are ready-to-run examples for REST and GraphQL in the prisma-examples repo.
🌐
GitHub
github.com › Qu1etboy › nestjs-prisma-graphql
GitHub - Qu1etboy/nestjs-prisma-graphql: An example of how to used Nest.js with Prisma and GraphQL
In this tutorial we didn't write any tests but if you want you can. Run those command to execute tests. # unit tests $ pnpm run test # e2e tests $ pnpm run test:e2e # test coverage $ pnpm run test:cov · We have learn how to install and setup a Nest.js project with Prisma and GraphQL. I hope you learned somthing from it. The source code can be found in my GitHub Repo · https://docs.nestjs.com/graphql/quick-start#schema-first
Author   Qu1etboy
🌐
DEV Community
dev.to › aryanjnyc › use-prisma-with-a-nestjs-graphql-server-4n8d
Use Prisma with a NestJS GraphQL Server - DEV Community
January 13, 2020 - In the Terminal, run: ... As with the previous CLI, the CLI will ask a number of configuration questions. For the purposes of this tutorial, please create a directory at src/prisma and use the local schema file path of src/prisma/schema.graphql.
Find elsewhere
🌐
npm
npmjs.com › package › prisma-nestjs-graphql
prisma-nestjs-graphql - npm
May 30, 2026 - Or write you own graphql scalar types, read more on docs.nestjs.com. Output folder relative to this schema file Type: string · File path and name pattern Type: string Default: {model}/{name}.{type}.ts Possible tokens: {model} Model name in dashed case or 'prisma' if unknown
      » npm install prisma-nestjs-graphql
    
Published   May 11, 2025
Version   21.2.0
🌐
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 › 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 docker-compose build # or npm run docker:build # start docker-compose docker-compose up -d # or npm run docker · Update the Prisma schema prisma/schema.prisma and after that run the following two commands: ...
Starred by 2.5K users
Forked by 366 users
Languages   TypeScript 96.7% | JavaScript 1.8% | Dockerfile 1.3% | Shell 0.2%
🌐
LogRocket
blog.logrocket.com › home › how to use nestjs with prisma
How to use NestJS with Prisma - LogRocket Blog
June 4, 2024 - Prisma integrates quickly with various frameworks, such as GraphQL, Next.js, Nest, Apollo, and Express.js · Prisma addresses many shortcomings of traditional ORMs, such as a lack of type safety, mixed business and storage logic, and unpredictable queries caused by lazy loading. To get started with this tutorial, ensure you have:
🌐
Medium
medium.com › @shkim04 › nestjs-graphql-prisma-postgresql-set-up-6cc76a624bde
NestJS GraphQL/Prisma/PostgreSQL Set Up | by Seunghyun Kim | Medium
August 2, 2023 - NestJS GraphQL/Prisma/PostgreSQL Set Up You can see the whole code on the graphql-prisma-postgresql branch. To develop the business logic mentioned in the last article, we will have to define the …
🌐
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 - Allow to set custom graphql type for Prisma scalar type. ... import { GraphQLBigInt } from 'graphql-scalars'; export class BigIntFilter { @Field(() => GraphQLBigInt, { nullable: true }) equals?: bigint | number; } It will affect all inputs and ...
Starred by 572 users
Forked by 86 users
Languages   TypeScript
🌐
GitHub
gist.github.com › EdouardDem › 5aa7ed56117aed79f43914583474d4ae
nestjs-prisma-example-tutorial · GitHub
In this tutorial, we've demonstrated how to generate a NestJS application with a GraphQL API from a Prisma schema.
🌐
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
This codebase was created to demonstrate a fully fledged fullstack application built with NestJS, Prisma and GraphQL including CRUD operations, authentication, routing, pagination, and more.
Starred by 108 users
Forked by 26 users
Languages   TypeScript 95.6% | JavaScript 3.0% | Shell 1.2% | Dockerfile 0.2%
🌐
Teeto
teeto.hashnode.dev › nestjs-prisma-graphql
NestJs, GraphQL, Prisma, Teeto, Javascript - Hashnode
December 29, 2022 - We can test out our queries and mutation using GraphQL Playground. Run npm start to start the Nest server. This article shows how to get started with Nest, Prisma and GraphL by building some endpoints for a makeshift blog.
🌐
Elitedev
js.elitedev.in › js › build-production-ready-graphql-api-with-nestjs-prisma-and-redis-complete-tutorial-cc5df262
Build Production-Ready GraphQL API with NestJS, Prisma, and Redis: Complete Tutorial
September 18, 2025 - Learn to build a production-ready GraphQL API using NestJS, Prisma ORM, and Redis caching. Complete guide with authentication, testing, and deployment strategies.
🌐
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
Learn how to build scalable and performant server-side applications with Node.js, NestJS, and Prisma. Harness the power of GraphQL for faster and flexible APIs.