https://kotlinlang.org logo
#ktor
Title
# ktor
n

Nathan Kleinschmidt

03/01/2022, 9:50 PM
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

Dariusz Kuc

03/01/2022, 11:13 PM
was ktor 2.0 released? I thought it was still in
beta
n

Nathan Kleinschmidt

03/02/2022, 1:43 AM
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

Dariusz Kuc

03/02/2022, 2:05 AM
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

Nathan Kleinschmidt

03/02/2022, 2:11 AM
Thank you, much appreciated.
a

Aleksei Tirman [JB]

03/02/2022, 7:07 AM
Also, you can watch for this feature request.
n

Nathan Kleinschmidt

03/02/2022, 11:38 AM
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

Aleksei Tirman [JB]

03/02/2022, 5:02 PM
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

Nathan Kleinschmidt

03/02/2022, 5:46 PM
Fair enough. Thank you.
e

ESchouten

04/15/2022, 1:59 PM
@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

Nathan Kleinschmidt

04/15/2022, 2:23 PM
Thank you for that @ESchouten . I've been following your repo and been meaning to check out the 2.0 update.
😁 1
3 Views