NestJS is a very interesting backend framework that structures your complete project in a modularized fashion. TypeGraphQL is a way to generate graphql services in a code-first approach. NestJS wraps many other projects, including in the past TypeGraphQL, however due to requests from customers (not sure if that was performance or stability related) they have diverted from TypeGraphQL codebase, and cloned and modified their own version of it which they maintain. If you would want to use NestJS to architect your backend and also would want to use graphql i can recommend using "@nestjs/graphql" for your graphql service generation. If you only want to use graphql in a code-first approach then TypeGraphQL is great. Answer from Deleted User on reddit.com
Typegraphql
typegraphql.com › docs › nestjs.html
NestJS Integration · TypeGraphQL
TypeGraphQL provides some basic integration with NestJS by the typegraphql-nestjs package.
npm
npmjs.com › package › typegraphql-nestjs
typegraphql-nestjs - npm
December 27, 2025 - Basic integration of TypeGraphQL in NestJS. Allows to use TypeGraphQL features while integrating with NestJS modules system and dependency injector.. Latest version: 0.8.0, last published: 3 months ago.
» npm install typegraphql-nestjs
Published Dec 27, 2025
Version 0.8.0
Author Michał Lytek
Difference between typegraphql and @nestjs/graphql?
NestJS is a very interesting backend framework that structures your complete project in a modularized fashion. TypeGraphQL is a way to generate graphql services in a code-first approach. NestJS wraps many other projects, including in the past TypeGraphQL, however due to requests from customers (not sure if that was performance or stability related) they have diverted from TypeGraphQL codebase, and cloned and modified their own version of it which they maintain. If you would want to use NestJS to architect your backend and also would want to use graphql i can recommend using "@nestjs/graphql" for your graphql service generation. If you only want to use graphql in a code-first approach then TypeGraphQL is great. More on reddit.com
Integration with Nest
Owner note Scroll to typegraphql-nestjs package info ⬇️ Original post I was wondering if there could be more support for Nest.js, in particular, integration with an authorization endpoint is needed. Right now, I'm using this NPM package ... More on github.com
GitHub
github.com › MichalLytek › typegraphql-nestjs
GitHub - MichalLytek/typegraphql-nestjs: TypeGraphQL integration with NestJS · GitHub
Starred by 147 users
Forked by 20 users
Languages TypeScript 95.7% | JavaScript 4.3%
Reddit
reddit.com › r/graphql › difference between typegraphql and @nestjs/graphql?
r/graphql on Reddit: Difference between typegraphql and @nestjs/graphql?
April 13, 2021 -
I was looking in using typegraphql but I also found nestjs/graphql and I realized they look very similar, and that typegraphql have a NestJs Integration, but I couldn't understand why would I use that integration if it's almost the same.
So my questions is, what is the difference between both? Why would I use the typegraphql with the NestJs Integration?
Top answer 1 of 3
2
NestJS is a very interesting backend framework that structures your complete project in a modularized fashion. TypeGraphQL is a way to generate graphql services in a code-first approach. NestJS wraps many other projects, including in the past TypeGraphQL, however due to requests from customers (not sure if that was performance or stability related) they have diverted from TypeGraphQL codebase, and cloned and modified their own version of it which they maintain. If you would want to use NestJS to architect your backend and also would want to use graphql i can recommend using "@nestjs/graphql" for your graphql service generation. If you only want to use graphql in a code-first approach then TypeGraphQL is great.
2 of 3
1
Since this seems to be more of a question regarding Nest.js than GraphQL per se, just a note that r/Nestjs_framework/ exists. It's not the most active sub, but you might get more insight there.
Typegraphql
prisma.typegraphql.com › basics › nest js
Nest JS | TypeGraphQL Prisma
This module allows for basic integration of TypeGraphQL with NestJS, so you can use the generated TypeGraphQL classes to create a GraphQL API in NestJS.
CodeSandbox
codesandbox.io › examples › package › typegraphql-nestjs
typegraphql-nestjs examples - CodeSandbox
Allows to use TypeGraphQL features while integrating with NestJS modules system and dependency injector.826Weekly Downloads
Dreamonkey S.r.l.
dreamonkey.com › en › blog › why-and-how-we-migrated-from-type-graph-ql-to-nest-js-graph-ql
Why and how we migrated from TypeGraphQL to NestJS GraphQL?
NestJS is an awesome Node.js framework that lets you build GraphQL APIs, REST APIs, and more. In this article, we will explore the reasons why we migrated from TypeGraphQL (type-graphql and typegraphql-nestjs) to NestJS GraphQL (@nestjs/graphql). We will examine the maintenance problems and lacking features of the former packages and provide step-by-step instructions on how to migrate to the latter.
GitHub
github.com › mohaalak › nestjs_typegraphql
GitHub - mohaalak/nestjs_typegraphql · GitHub
This is a TypeGraphQL module for Nest. I manually combine both decorators of Nestjs Graphql with TypeGraphql.
Starred by 17 users
Forked by 3 users
Languages TypeScript 99.4% | JavaScript 0.6%
Alibaba Cloud
developer.aliyun.com › mirror › npm › package › nest-type-graphql
Package - nest-type-graphql
This is a TypeGraphQL module for Nest. I manually combine both decorators of Nestjs Graphql with TypeGraphql.
npm
npmjs.com › package › nest-type-graphql
nest-type-graphql - npm
November 17, 2018 - This is a TypeGraphQL module for Nest. I manually combine both decorators of Nestjs Graphql with TypeGraphql.
» npm install nest-type-graphql
Published Nov 17, 2018
Version 0.1.2
Author Mohammad Hadi Aliakbar
GitHub
github.com › MichalLytek › type-graphql › issues › 135
Integration with Nest · Issue #135 · MichalLytek/type-graphql
August 29, 2018 - Right now, I'm using this NPM package + TypeORM, following the sample, so far so good but unfortunately the source was nowhere to be found, and so I have to workaround my auth checker which required me to pass the database module into the context but it is very dangerous. So what about an official extension of TypeGraphQL to Nest.JS?
Author MichalLytek
GitHub
github.com › nestjs › graphql
GitHub - nestjs/graphql: GraphQL (TypeScript) module for Nest framework (node.js) 🍷
Starred by 1.5K users
Forked by 427 users
Languages TypeScript 99.7% | JavaScript 0.3%
npm
npmjs.com › package › nestjs-type-graphql
nestjs-type-graphql - npm
June 24, 2018 - Integration between nestjs and type-graphql. Latest version: 0.0.1-alpha.0, last published: 6 years ago. Start using nestjs-type-graphql in your project by running `npm i nestjs-type-graphql`. There are no other projects in the npm registry using nestjs-type-graphql.
» npm install nestjs-type-graphql
Published Jun 24, 2018
Version 0.0.1-alpha.0
Author Salim Benabbou
NestJS
docs.nestjs.com › graphql › resolvers
Documentation | NestJS - A progressive Node.js framework
Nest is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with TypeScript and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP ...