Generate type safe client for remote schema from apollo server #1749
-
|
There is a wonderful feature in dgs codegen plugin that allows us to generate dto objects to use it in queries and mutations in a typesafe manner. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
You will need a way to get the application schema from the introspection endpoint and have it local in order to generate code using the plugin. We have such use cases and we obtain the schema from the introspection endpoint. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, thank you! It seems I can just generate it with use of IDEA plugin and put it locally manually or do the same with use of some gradle task |
Beta Was this translation helpful? Give feedback.
You will need a way to get the application schema from the introspection endpoint and have it local in order to generate code using the plugin. We have such use cases and we obtain the schema from the introspection endpoint.