dotansimha / dotansimha/graphql-code-generator
How do I prevent adding a suffix to generated GQL Document?
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 23
Description
Hello!
So I currently want to add `_t` to all my types but for `TypedDocumentNode` I don't want to add `_t` to it since its not a type.
I have the config options `typesSuffix: _t` at the moment (which also adds it to my Document node which I don't want). Is there another configuration I could use?
i.e right now types are
for a `OrgMember`
`OrgMember_t`
`OrgMemberFragment_t`
`OrgMemberDocument_t` <-- I don't want this since I will be using this to pass into my useQuery hooks + query promises
I also noticed that if I tried a different plugin i.e typescript-react-apollo
the Document GQL are also adding a _t onto the name even though its not considered a type
OrgMemberDocument_t
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.