How to use subscription of GraphQL in Graphql.js

ぐ巨炮叔叔 提交于 2020-01-12 11:08:26

问题


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:


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



来源:https://stackoverflow.com/questions/46255654/how-to-use-subscription-of-graphql-in-graphql-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!