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

Update codegen to work for AbcCTum (Was converting to AbcCtum) #2170

Merged

Conversation

cltnschlosser
Copy link
Contributor

Key is AbcCTA, which get's converted by singularize to structName: AbcCTum (this is already not great, but not the bug causing compilation issues)
The key is used to create the structName.
In this place the property (abcCtum) was being used instead which made: AbcCtum (AbcCTum and AbcCtum don't match, notice the T vs t)

CC @designatednerd

renovate bot and others added 2 commits November 20, 2020 16:27
Key is AbcCTA, which get's converted by singularize to structName: AbcCTum (this is already not great, but not the bug causing compilation issues)
The key is used to create the structName.
In this place the property (abcCtum) was being used instead which made: AbcCtum (AbcCTum and AbcCtum don't match, notice the T vs t)
@designatednerd
Copy link
Contributor

@cltnschlosser Yeah there's some real messy stuff in here around pluralization but it should at least compile.

Would you mind adding a test for this so we don't accidentally break it in the future?

@cltnschlosser
Copy link
Contributor Author

Yeah, I can try.

@cltnschlosser
Copy link
Contributor Author

Well this test isn't perfect, but it breaks if you revert my change.

@designatednerd
Copy link
Contributor

I'll ping the team tomorrow about getting a release out with this but the test is helpful. For what it's worth this won't be a problem in the new codegen because you'll be able to specify pluralizations if things aren't coming out the way you want from the default singularizer/pluralizer. Here's the pull where I've set that up.

@designatednerd designatednerd merged commit 25ac371 into apollographql:master Dec 2, 2020
@cltnschlosser cltnschlosser deleted the cs_fixIncorrectTypename branch December 2, 2020 06:12
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