Skip to content

fix(graphql): name and key should be the same for an enum without Enum suffix in class name #5369

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

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

alanpoulain
Copy link
Member

Supersedes #5367.

@alanpoulain alanpoulain force-pushed the fix/graphql-enum-name branch from 23d3d3a to 397d12d Compare January 25, 2023 16:46
@alanpoulain alanpoulain merged commit f7c70b1 into api-platform:3.1 Jan 25, 2023
@jotwea
Copy link
Contributor

jotwea commented Jan 26, 2023

Today I applied this fix to my codebase and I am not totally fine with it @alanpoulain. As a side effect all the enum types are also suffixed with Enum in the generated graphql schema now. As I use the Apollo Code Generator to create TypeScript code out of the schema this will be a BC now.

I can workaround this on my clients. But wanted to let you know about it. So you can decide if this is OK or needs to be solved either.

@alanpoulain
Copy link
Member Author

Why would it be a BC? It was not working before, so it should not considered a BC in my opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants