• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

geowarin/graphql-webflux: GraphQL application using spring 5 reactive framework ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

geowarin/graphql-webflux

开源软件地址(OpenSource Url):

https://github.com/geowarin/graphql-webflux

开源编程语言(OpenSource Language):

Kotlin 66.2%

开源软件介绍(OpenSource Introduction):

GraphQL and Spring Webflux

This is a sample GraphQL application written in kotlin that uses graphQL-java and spring webflux (with spring-boot 2).

When browsing the application on localhost:8080, you will see the graphiQL explorer.

Why

There is a graphql-spring-boot-starter already available but it uses a Servlet which forces us to use spring MVC.

Creating a handler for webflux using graphql-java is fairly trivial but there is actually a spec to follow when serving graphql over HTTP.

This is my implementation of the spec, it is fully tested and ready to be used in your application.

I hope it can serve as a base implementation if graphql-java's authors wish to support Webflux in the future.

Tests

Tests are written using the reactive WebClient and junit 5.

They require gradle 4.6 to work, so be sure to use the wrapper.

Your feedback is welcome

I'm not a reactor specialist and I don't have a clear understanding of graphql-java async's internals yet. In particular, I'm curious about this issue.

If you have more insights, please give your opinion.

I did my best to implement the graphql spec but there might be bugs or things I overlooked.

If you find anything odd, contributing with an issue or a failing test would be wonderful. ❤️

Thanks!




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
tjmehta/graphql-date: GraphQL Date Type发布时间:2022-07-10
下一篇:
o2web/graphql-auth: GraphQL authentication with JWT发布时间:2022-07-10
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap