How to use subscription of GraphQL in Graphql.js

2020-06-30 03:55发布

I am using relay-fullstack. It's using GraphQL.js. I want use subscription of GraphQL in GraphQL.js. But I can't find documents about subscription of GraphQL in GraphQL.js.
Can I use subscription of GraphQL in GraphQL.js?
Or does not it support that?

1条回答
▲ chillily
2楼-- · 2020-06-30 04:34

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

查看更多
登录 后发表回答