简体   繁体   中英

How to use subscription of GraphQL in Graphql.js

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM