graphql-kotlin icon indicating copy to clipboard operation
graphql-kotlin copied to clipboard

Is it possible to use this library without Ktor, but directly with OkHttp?

Open cies opened this issue 6 months ago • 1 comments

Currently SpringBoot's httpClient and Ktor+OkHttp are supported.

Since I'm not using Ktor, and it brings in quite a few dependencies (including kotlin-reflect), I wonder if it is also possible to use OkHttp directly.

And, if it is not possible (what I expect), I wonder why it is not, and if/what-for kotlin-reflect is used. Since kotlin-reflect has a significant impact on the start up times and makes serialization slower (if graphql-kotlin actually uses it for that purpose, which might not be the case when selecting kotlinx.serialization in the Gradle configuration).

cies avatar Jun 25 '25 14:06 cies

I've tried to implement this in a fork I made: https://github.com/cies/graphql-kotlin

Not all tests currently pass, but it seems doable.

cies avatar Jun 26 '25 14:06 cies