https://kotlinlang.org logo
#graphql-kotlin
Title
# graphql-kotlin
f

Filip Lastic

12/20/2021, 7:15 PM
Hi! Please, any tips what is the best way how to run and debug maven/gradle plugin task
graphqlGenerateClient
during development in your lib? 🙂
Maybe it is anti-pattern, but I created a custom
main
function that calls
GraphQLClientGenerator.generate()
method 🙂
d

Dariusz Kuc

12/22/2021, 5:37 PM
👋 can you elaborate on the use case here? i.e. in general I'd assume you would run `graphqlGenerateClient`/`graphqlGenerateTestClient` at build time whenever you change your query file. unsure why you would ever need to call the generate method directly
f

Filip Lastic

01/03/2022, 11:04 AM
Hey 🙂 My use case was to contribute into your plugin. So I wanted to perform some manual testing during implementation 🙂
👍 1
d

Dariusz Kuc

01/03/2022, 1:09 PM
Then yeah calling the generate method from a unit test so you can debug and step through the code is the way to go
1