Closed rb090 closed 6 months ago
Hey,
Thanks for your comment, unfortunately, it's not possible yet. The project is still in early stage.
But I'm actively working on it. I'll keep you posted once it's possible.
Hi @mbiamont,
wow cool, thank you so much ๐. I really like your code. It is so nice and clean. I would be really more than happy to support if I can. Please just let me know. At least testing is sth I can do quite good. Integrate it, try it out and all that stuff.
Tbh - before starting with Ariane, I did also a research about existing libraries. There are a couple of them, listed on the โofficialโ community page of graphql. But none of them really convinced me. They are really heavy and I have a really small use case. So then I found your library and I was really amazed.
Hello @rb090
I just published a new version that should handle argument typing (v0.3.0). Also, I published a Gradle plugin.
The plugin will generate the types according to your graphQL schema, and the resolver functions. For instance, with this plugin, instead of writing
resolvers {
Mutation {
resolve<UserObjectInput>("mutationWithUser") {
println("User ID = ${it.userId}")
}
}
}
You can write
resolvers {
Mutation {
mutationWithUser { (user) ->
println("User ID = ${user.userId}")
}
}
}
More info here: https://arianegraphql.com/docs/codegen
Feel free to test it out and give me your feedback ๐
Hi ๐,
1st of all thanks a lot for this wonderful Kotlin GQL server which is compatible with KTor. I really like it.
I have few small question please. Please be patient with me I am really a beginner when it comes in writing GQL servers. So I really don't have that much experience.
When I have custom input types within my schema, used on the GQL operations like fe. within a
Mutation
, how to correctly retrieve them in the code?Fe. I have this schema:
My Application class of my Ktor Server looks like this:
Can you please tell me how the mapping "schema GQL objects" <-> Kotlin data classes needs to work with ariane-server? The mapping is my only issue here.