Open gottschd opened 1 month ago
Hello,
You missed nothing.
GraphQL good practice is that field names start with lower case letters. It respected so much, that you're the first to encounter this issue.
It's actually a bug of the plugin.
I'll correct it in the next version.
Etienne
Hello Etienne,
thanks for both, the link and the bugfix.
Much appreciated!
Danny
Hello,
I want to support an external available graphql schema with this
graphql-java-generator
.Given the (simplified) schema example below with a Query definition that begins with an uppercase letter:
GraphQL Java Generator maven plugin generates a
DataFetchersDelegateQuery
interface with a lowercase method nameHowever, the generated
QueryController
expects an uppercase variant of the interface's method in theDataFetchersDelegateQuery
.I'm using spring boot
3.3.1
and the version of the graphql-java-server-runtime is2.7
. The outcome is a compile error when generating the server code.Am i missing something?
Kind regards, Danny