Generation of code from SDL (without connection to the GraphQL server) #911
-
First of all, thank you for the library, I was using it during the last weeks for creating E2E API tests. But during the usage and reading the documentation I found the only way to generate the code using the existing GraphQL server. Actually, one of gradle tasks So the question is it possible to generate the whole client code without exiting the running GraphQL server? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello 👋 See #905 for details. |
Beta Was this translation helpful? Give feedback.
Hello 👋
If you are using
graphql
Gradle plugin extension then yes it is equivalent of running introspect/download SDL followed by client generation (see https://expediagroup.github.io/graphql-kotlin/docs/plugins/gradle-plugin#complete-configuration-example). There is no way to configure client generation to use local file when using the extension. Instead you will need to configure the individual task.See #905 for details.