What is the recommended configuration for using Gr...
# ktor
n
What is the recommended configuration for using GraphQl with Ktor 2.0? Some libraries like KGraphQl only support Ktor 1.x. Are there any plans by the Ktor team to offer a GraphQl plugin?
d
was ktor 2.0 released? I thought it was still in
beta
n
Latest release is 2.0.0-beta-1. I'm just getting started with my project and don't want to use the old version if it's about to be out of date. Will the Expedia library work with 2.0?
d
While we dont support ktor server out of the box you should be able to follow the ktor example (and yes it should work with v2)
n
Thank you, much appreciated.
a
Also, you can watch for this feature request.
n
I saw this YT post, but it looks pretty sparse. What are the odds of the feature request getting traction? From a user perspective it would be really nice to get graphql as part of the setup wizard.
a
The only thing I can say is that work on this feature request may be started only after the release of Ktor 2.0.0.
👍 1
n
Fair enough. Thank you.
e
@Nathan Kleinschmidt In case you want to use KGraphql with Ktor 2.0, you could provide your own (updated) plugin. See https://github.com/ESchouten/CleanArchitecture/blob/main/infrastructure/ktor/src/main/kotlin/ktor/plugins/KGraphql.kt
Still far from ideal to use a library where the maintainer has gone AWOL, but I guess this could be a temporary solution until Ktor hopefully supports Graphql. Sadly Graphql-kotlin did not suit my needs
n
Thank you for that @ESchouten . I've been following your repo and been meaning to check out the 2.0 update.
😁 1