Generate client from schema #1196
-
Hi, We are using spring-mvc and therefore cannot use the graphql-kotlin-server dependency. What we did instead is to use the lib Now we would like to create some contracttests to ensure that our model etc does not break for the client. Is there maybe another way to generate the client? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hello 👋 |
Beta Was this translation helpful? Give feedback.
Hello 👋
You should be able to generate your schema file using
graphqlGenerateSDL
task (https://expediagroup.github.io/graphql-kotlin/docs/plugins/gradle-plugin-usage#generating-sdl-example) which you can then use for generating your client.