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

enumPrefix not working properly with typescript-resolvers #3873

Open
Tracked by #8296 ...
veeramarni opened this issue Apr 16, 2020 · 4 comments
Open
Tracked by #8296 ...

enumPrefix not working properly with typescript-resolvers #3873

veeramarni opened this issue Apr 16, 2020 · 4 comments
Assignees
Labels
core Related to codegen core/cli plugins

Comments

@veeramarni
Copy link
Contributor

Describe the bug
This issue is similar to #2621 but when adding additional plugins, we see some types mapping with prefix and some not for enums.

      - typescript-resolvers
      - typescript-react-apollo
@dotansimha
Copy link
Owner

@veeramarni can you please provide a reproduction for this?

@dotansimha dotansimha added the waiting-for-answer Waiting for answer from author label Apr 28, 2020
@dotansimha
Copy link
Owner

@veeramarni ?

@veeramarni
Copy link
Contributor Author

Will create a test case shortly.

@dotansimha dotansimha added bug and removed waiting-for-answer Waiting for answer from author labels May 18, 2020
@dotansimha dotansimha self-assigned this May 18, 2020
@veeramarni
Copy link
Contributor Author

I have tried to replicate the issue here https://codesandbox.io/s/graphql-codegen-issue-template-r8qht?file=/types.ts:3877-3881

Noticed, the issue with a prefix on the type instead of enum. Instead of IUser it uses User in resolvers. The issue still exist in the latest version(1.14.0) as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to codegen core/cli plugins
Projects
None yet
Development

No branches or pull requests

4 participants