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

Upgraded dgscodegen to 5.0.3 #8

Merged

Conversation

karhig
Copy link
Contributor

@karhig karhig commented Jul 20, 2021

I noticed that the latest version of dgs serializes queries incorrectly with the latest version of the maven codegen plugin. Namely, it doesn't use the graphql type name when generating the query fragment and instead uses the classname. This is because no schemaType is provided in older versions of the generated code.

Updating to the latest version of the code gen library fixes this when using the gradle plugin, so this is what I've tried to do here for the maven plugin.

This is my first time making a change to a maven plugin, so I hope it works. I'm not sure the best way of testing it. The best that can be said of this is that it compiles :)

@karhig
Copy link
Contributor Author

karhig commented Jul 22, 2021

In my previous comment I hadn't checked if this worked. I've now used it in a project and can confirm that it's working.

Another day, another dollar :)

@deweyjose
Copy link
Owner

Hi @karhig! Thank you for pushing this forward. I'll release this tonight.

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.

None yet

2 participants