dotansimha / dotansimha/graphql-code-generator-community
[typescript-operations] add description and @deprecated comments with preResolveTypes=true
- Dominant language
- TypeScript
- Stars
- 137
- Forks
- 195
- Avg merge
- 6h 20m
- Merged PRs (30d)
- 16
Description
**Is your feature request related to a problem? Please describe.**
We use preResolveTypes since I dont want the devs to accidentally use the graphql types witch happens quiet often recently (maybe an option to dont export them could also help here). I read recently that deprecations are added to the generated files via @deprecated comment. So Ive looked them up and found they are only added to the Graphql types but not to the operation types with preResolveTypes. Even more there are no comments added to the operation types.
**Describe the solution you'd like**
I think it would be a good Idea to also add them to the Operations or at least when preResolveTypes is true.
**Describe alternatives you've considered**
I have no idea. Description and deprecated could be very helpful.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.