You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very useful to be able to leverage code generation to make case classes for a Sangria server with an SDL/IDL schema (within a .graphql file, Sangria calls this schema materialization).
Is that a feasible feature addition based on the code generation code being added to this project?
The text was updated successfully, but these errors were encountered:
Hi @ksajme
Thanks for your suggestion. This sounds like a proper use case to me. Just to be clear that I don't get this wrong:
You have a pre-existing schema defined as SDL/IDL file.
Next you want to implement this schema. Normally you would have to implement the case classes your own, but you would like to generate them from the SDL.
I haven't looked at the schema materialisation feature in depth yet, but your suggestion sounds perfect for this plugin.
The use case is for GraphQL servers. Sangria provides macros to generate case classes if you are using its DSL but if you are using an SDL/IDL schema file as a source (materialization), you are out in the cold.
I'd be curious to see if the code @jonas is working on could be modified to fit this purpose without much fuss.
It would be very useful to be able to leverage code generation to make case classes for a Sangria server with an SDL/IDL schema (within a .graphql file, Sangria calls this schema materialization).
Is that a feasible feature addition based on the code generation code being added to this project?
The text was updated successfully, but these errors were encountered: