You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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 fromclass-transformer
andclass-validator
also work with GraphQL.The text was updated successfully, but these errors were encountered: