Generate GQL string builders and access to the compiled model #6987
Unanswered
Andras-Csanyi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
I have been working with Graphql (Spring) for a while and there is one thing I don't like: managing the graphql query strings in tests manually. It is error prone a PITA.
Thinking it further... a set of builders would be useful for a client too. For example, I use Blazor at client side and I can provide a package so the consumer don't have to write their queries manually (string), rather they can use these builders.
I my job (java) I started working on a code generator which spits out builder classes so in the tests the grapql string is not a string, rather a hierarchy of builder objects. It looks like this instead of this or similar.
I am considering doing something similar with my pet project which uses HotChocolate, but I have a few questions before I invent hot water:
Beta Was this translation helpful? Give feedback.
All reactions