MichalLytek / MichalLytek/type-graphql

Integration with Nest

Open
#135 85 comments 17 reactions 0 assignees View on GitHub
Community :family_man_girl: Discussion :speech_balloon: Enhancement :new:
Dominant language
TypeScript
Stars
8.1k
Forks
672
PR merge metrics
No merged PRs in 30d

Description

### Owner note
[Scroll to `typegraphql-nestjs` package info ⬇️](https://github.com/MichalLytek/type-graphql/issues/135#issuecomment-606199943)

## 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](https://www.npmjs.com/package/nestjs-type-graphql) + 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? This would make it easier to write universal services.

Contributor guide

Open the contributing guide

Research direction

Start with the linked owner note for the `typegraphql-nestjs` package information, then compare the referenced `nestjs-type-graphql` package and its sample. Clarify the scope of official Nest.js integration, especially authorization endpoints and safely passing database access through the context; done means an agreed extension design and documented integration path.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.