I read about there being a client, is this planned...
# graphql-kotlin
g
I read about there being a client, is this planned to support multiplatform like how ktor does it? Because otherwise wouldn't apollo android with coroutines support be good enough for just jvm kotlin?
s
@Goregius We do not have any official plans of adding a Kotlin client to the library but it has come up in discussion if we wanted to do more of the work in graphql-java in a pure Kotlin implementation. This would mean we could be open to multiplatform and if we have a schema and request parser then a client is easier thing to work on. This is all just discussion right now. Our clients at Expedia Group use Apollo Android today
g
A client is not that complicated through. It depends a lot on how you want to construct the queries. Most of the serialization can probably re-used from the server.
d
well depends how complicated you want to make it
in the simplest form -> it is just a post/get request
much more useful gql client would also generate your data classes based on the queries
something even more advanced would allow for automatic persisted queries, etc