Is there a good tutorial on using GraphQL on serve...
# ktor
m
Is there a good tutorial on using GraphQL on server side using Ktor?
d
for generating schema you can also use https://github.com/ExpediaGroup/graphql-kotlin *disclaimer: I am one of the creators/maintainers of that project
1
m
@Dariusz Kuc Hey! I do know of this library, but there seems to be support only for Spring on the server-side. But why? Why not make it generic so it can be used with any framework? 😞
d
👋 we only provide spring integration as that’s what we use internally and we know its tested and works correctly. That being said schema generation part and overall runtime (still relying on
graphql-java
) is agnostic of any framework so can be integrated with Spring (provided), Spark (see examples within the repo), Javalin (I’d call it still an early alpha/beta -> https://javalin.io/plugins/graphql) and any other frameworks.
Afaik there are some users that do use it with Ktor
j
KGraphQL is in the process right now in creating ktor plugin that will be easy to setup with a simple install call like you currently do with any other features in ktor.
We are using KGraphQL with ktor in production
m
@Dariusz Kuc Thank you, will explore the library deeper
@jeggy Sounds cool! 😍 Is it being developed in the open?
j
Yes the github repository is here: https://github.com/aPureBase/KGraphQL I just finished first draft of the ktor docs: https://kgraphql.io/Plugins/ktor/
🆒 1
👍🏼 1