[typescript-react-apollo] dedupeOperationSuffix
doesn't work when operation name is all upper case
#126
Labels
help wanted
Extra attention is needed
Describe the bug
The typescript-react-apollo plugin doesn't properly handle deduping operation suffix when the suffix is all upper case.
To Reproduce
Generate apollo typescript hooks with an operation name that is all caps and post-fixed with
QUERY
,MUTATION
, orFRAGMENT
.codegen.yml
config file:Expected behavior
A hook should be generated with pascal case without duplicate operation name suffix
Environment:
Additional context
From looking at the codebase, I believe that the operation name being tested here should either be a regex match or convert it to test the operation name via
pascalCase(name).includes(...)
.The text was updated successfully, but these errors were encountered: