Replies: 2 comments 3 replies
-
Yes, the gradle codegen plugin does generate barebones data fetchers as example code under build/generated-examples. Note that you would need to copy over these examples to the actual location and populate that with the required data fetcher logic. Also this generated code is not included as part of your build. |
Beta Was this translation helpful? Give feedback.
-
Hi, As a follow-up question; is there any reason why not to generate the queries,mutations as interfaces which can be implemented in the services ? Something like below ;
This will force schema-changes to be implemented and easily to be validated in CI |
Beta Was this translation helpful? Give feedback.
-
During learning netflix DGS, I use this schema.
Then according to getting started, we need to follow these rules:
@DgsComponent
and implement method with@DgsQuery
.Which means, this is the required dgs component.
This skeleton seems follow specific rules above. I wonder if gradle codegen only generate data types, or also we can configure it to generate query skeleton?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions