# TypeGraphQL: 5.0 out of 10

Reasonable, with limits. 9th of 10 in [RPC and GraphQL libraries](https://elestia.ai/opensource/api-layers/index.md).

TypeGraphQL builds a GraphQL schema and resolvers from TypeScript classes and decorators. It is mature and has many features, and plenty of existing code runs on it. But its last stable release (1.1.1) dates from 2020, v2 has stayed in release candidate for years, and it still depends on legacy decorators and reflect-metadata. For new code-first GraphQL work, Pothos is usually the better pick.

**Best for:** Teams that already use class-and-decorator TypeScript, often with class-validator or TypeORM, and want their GraphQL schema built the same way.

## Scores

- **Overall: 5.0** (likely 3.9 to 6.1)
  - Claude Opus 5.5 (4.5): TypeGraphQL still works and has many features, so it is fine to keep where it already runs. For new projects, slow single-maintainer development, the long-running 2.0 release candidate and the legacy decorator model count against it. Pothos offers better type inference and is far more active, so it does the same job better for most people.
  - GPT-6.2 Sol (5.4): TypeGraphQL remains a reasonable choice for teams committed to class-based resolvers on an existing GraphQL.js 15 stack. For most new code-first projects, Pothos offers stronger compile-time resolver inference and a much more active release cadence. The 2.0 candidate adds GraphQL.js 16 compatibility, so the recommendation could improve once a stable release establishes a maintenance record.
- **Needed by many: 3.9** (likely 2.9 to 5.0)
  - Claude Opus 5.5 (4.0): It serves only TypeScript developers who build GraphQL servers code-first, and among them those who like decorators. That is a clear subset of the category, which also covers RPC and schema-first GraphQL.
  - GPT-6.2 Sol (3.8): GraphQL is a substantial API niche. Postman's 2025 survey reports 33% GraphQL use among its API-focused respondents. TypeGraphQL serves the smaller group building GraphQL schemas with classes and decorators in TypeScript on Node.js. The survey gives context for GraphQL demand, while the share of JavaScript and TypeScript developers who need this particular workflow is uncertain.
- **Helps a lot: 5.7** (likely 4.6 to 6.8)
  - Claude Opus 5.5 (5.5): It is feature-rich and works with any GraphQL server. Its weak points are type inference, since types are declared explicitly and resolved at runtime through reflection, and the need for legacy decorators. Independent comparisons rank it below Pothos on architecture, type definitions and ecosystem integration, but first on built-in features.
  - GPT-6.2 Sol (5.8): Stable 1.1.1 offers a coherent class-based workflow with documented authorization, validation, middleware, and subscriptions. Its GraphQL.js 15 dependency prevents a supported pairing with Apollo Server 5. The versioned examples help developers and coding agents, but legacy metadata and explicit list and promise types add setup and runtime failure modes. A 2024 benchmark found modest resolver overhead in its test setup, and current performance and agent accuracy remain less certain.
- **Holds up over time: 4.1** (likely 3.0 to 5.6)
  - Claude Opus 5.5 (3.5): There were only 24 commits and two RC releases in the last year, and the OpenSSF Maintained check scores 0. Work rests mostly on one maintainer, funded through sponsors. Version 2.0 has been in pre-release since 2023, and the RCs still bring breaking changes. Its reliance on legacy decorators also puts it at odds with where TypeScript is heading.
  - GPT-6.2 Sol (4.7): The repository recorded 24 commits and two GitHub releases in the past year, and the project receives recurring community funding. The latest stable release dates to 2020, February's 2.0.0-rc.4 is still the newest candidate, and npm lists one human collaborator. Pothos has a much faster release cadence, and TypeGraphQL's 2.0 migration changes subscriptions and scalar naming. The open 2.0 milestone leaves room for improvement, while the pace of stable fixes and ongoing issue response remain uncertain.
- **Used widely: 5.2** (likely 4.1 to 6.3)
  - Claude Opus 5.5 (5.5): It has about 4.3M downloads in 4 weeks and about 7,000 dependent repositories, the second most among GraphQL peers after Yoga and well above Pothos. But its download ratio of 3.7 is below the 4.1 median, so it is losing ground. Many of the dependents are older codebases.
  - GPT-6.2 Sol (4.9): ecosyste.ms found about 7,100 dependent repositories and 450 dependent packages, and the project has about 8,100 GitHub stars. Four-week npm installs rose from 1.15 million to 4.27 million, about 3.7 times year over year against the 4.1 times catalog median and Pothos's 5.5 times. Automated and indirect installs, incomplete repository coverage, and little recent discussion leave the number of new projects choosing it uncertain.
- **Vouched for: 4.8** (likely 3.4 to 6.2)
  - Claude Opus 5.5 (4.5): It has years of production use, and tools such as typegraphql-prisma and typegraphql-nestjs build on it. But current independent write-ups rank it below newer code-first libraries, and I found no recent survey or company endorsement.
  - GPT-6.2 Sol (5.1): LoopBack's GraphQL extension still depends on TypeGraphQL, using the 2.0 candidate line. Graphweaver removed it in v1 and cited metadata growth and extensibility. An independent benchmark measured a throughput cost, while developer reports include both positive experiences and trouble with metadata setup. Recent production endorsements and satisfaction data for the stable release are sparse.
- **Safe: 5.9** (likely 4.7 to 7.3)
  - Claude Opus 5.5 (6.0): Its record is clean: one low-severity advisory from 2020, nothing in the last 24 months, 6 dependencies, and an MIT licence. Against that, the Scorecard is weak at 3.1, with low scores on Code-Review, Token-Permissions, Dangerous-Workflow and Security-Policy, and releases depend largely on one person.
  - GPT-6.2 Sol (5.7): The MIT license is permissive, and the sole known direct advisory was low severity and patched nine days after the public report. Stable 1.1.1 lists eight direct dependencies and runs a postinstall script. The current release process uses GitHub Actions and npm trusted publishing, while the package lists one human collaborator and Scorecard gives the repository 3.1 for controls that include weak review and workflow checks. Those gaps leave uncertainty about future release integrity and response times.

## Good

- Classes and decorators make schema code easy to read, and each resolver class groups a type's queries, mutations and field resolvers.
- It has many built-in features: middleware, auth checkers, directives, extensions, subscriptions, custom scalars and class-validator integration.
- buildSchema returns a standard GraphQLSchema, so it works with Apollo Server, Yoga, Mercurius and others.
- It has a long track record, with about 7,000 dependent repositories and a small dependency tree.

## Bad

- It needs experimentalDecorators, emitDecoratorMetadata and reflect-metadata, not standard TC39 decorators.
- Types are verbose: most fields need an explicit type function, enums must be registered, and interface fields are repeated.
- Version 2.0 has been in beta and release candidate since 2023, and the last stable release is from 2020.
- Development is slow and rests mostly on one maintainer, with about 24 commits in the last year.

## The numbers

- Downloads, 4 weeks: 4.3M
- In a year: ×3.7
- GitHub stars: 8.1k
- Commits, 12 months: 24
- Last npm release: Feb 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/MichalLytek/type-graphql
- npm: https://www.npmjs.com/package/type-graphql

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
