Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL Support #60

Open
Stackclash opened this issue Nov 16, 2024 · 1 comment
Open

GraphQL Support #60

Stackclash opened this issue Nov 16, 2024 · 1 comment

Comments

@Stackclash
Copy link

Would it be possible to add GraphQL annotation support to this generator?

https://docs.nestjs.com/graphql/resolvers#object-types

There is overlap between what is already supported and information that the GraphQL annotations need.

Scalar typer inference is a little different for GraphQL, but @description can be used for the field descriptions. All of the annotations from class-transformer and class-validator also work with GraphQL.

@Brakebein
Copy link
Owner

I haven't done anything yet with GraphQL, so I won't be able to properly validate the generated output. From the first look at the docs I can see that the decorators and syntax are quite different or kind of special. Hence, it probably needs some bigger adaptions to the code. Actually, it's hard to estimate. However, I don't currently have the time to dive into the topic that deeply. Sorry for that. But feel free to make a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants