[英]How to use subscription of GraphQL in Graphql.js
I am using relay-fullstack . 我正在使用relay-fullstack 。 It's using
GraphQL.js
. 它使用
GraphQL.js
。 I want use subscription of GraphQL in GraphQL.js
. 我想在
GraphQL.js
使用GraphQL的GraphQL.js
。 But I can't find documents about subscription of GraphQL in GraphQL.js . 但是我在GraphQL.js中找不到有关GraphQL订阅的文档。
Can I use subscription of GraphQL in GraphQL.js
? 我可以在GraphQL.js中使用GraphQL的
GraphQL.js
吗?
Or does not it support that? 还是不支持?
Yes you can! 是的你可以! I created a simple repository based on Facebook relay-examples todo relay modern with subscriptions support (server and client), you can check it out, I might also improve it in the future: https://github.com/jeremy-colin/relay-examples-subscription
我基于Facebook Relay-examples创建了一个简单的存储库,它具有订阅支持(服务器和客户端),可以进行现代更新,您可以查看一下,将来我也可能会对其进行改进: https : //github.com/jeremy-colin/继电器的例子认购
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.