spring-fu
spring-fu copied to clipboard
Add GraphQL support
There seems to be 2 way of supporting GraphQL:
- https://github.com/graphql-java/graphql-java-spring
- https://github.com/ExpediaDotCom/graphql-kotlin
We need to see which one is the more relevant.
I started working on it.
Awesome, thanks!
@FVershinin Any update? I recently found https://github.com/ExpediaDotCom/graphql-kotlin which is pretty interesting. Are you using it or another library?
Yes. I am using this library to generate graphql schema.
Current status:
- Added kotlin-dsl for "ExpediaDotCom/graphql-kotlin"
- Added support operations "query" and "mutation"
- Added support for webmvc and webflux
- Added dsl to configure graphql
- Added support graphiql https://github.com/graphql/graphiql
sample: https://github.com/FVershinin/spring-fu/blob/spring-graphql/samples/kofu-servlet-graphql/src/main/kotlin/com/sample/Application.kt
my branch: https://github.com/FVershinin/spring-fu/tree/spring-graphql
Now I am trying to integrate graphql-java with WebSocket, Flux WebSocket and RSocket.
There seems to be 2 way of supporting GraphQL:
- https://github.com/graphql-java/graphql-java-spring
- https://github.com/ExpediaDotCom/graphql-kotlin
We need to see which one is the more relevant.
They are resolving two different tasks:
- ExpediaDotCom/graphql-kotlin focuses on generate graphql schema.
- graphql-java/graphql-java-spring focuses on HTTP execution.
Thanks for your feedback and the PR. I would be super interested to see how RSocket and GraphQL could be used together!
Another source of inspiration from @tgirard12 https://github.com/tgirard12/graphql-kotlin-dsl
Solving this issue should probably leverage the new Spring GraphQL support incubating in https://github.com/spring-projects-experimental/spring-graphql.