shurcooL/graphql

Is there any plan to support subscription?

lynic opened this issue · 5 comments

lynic commented
Is there any plan to support subscription?

Yes, it is a long term goal. However, I don't plan to work on this soon. It's not needed for githubv4 because the GitHub GraphQL API v4 doesn't make use of the feature.

If you have a need for this feature, I would suggest developing it in a fork. Once it's ready for general consumption, I'd be happy to eventually pull it in.

I recently needed a solution for this, and rolled my own. You'll notice that it's actually heavily based on the non-exported API of this package. I ended up copying two of those files from this package, because the APIs aren't exported.

https://gist.github.com/adamgoose/005cda8d9ce4030047e05e5b07953fd4

@dmitshur is there any chance that the solution by @adamgoose be added in the package?

Hi all, Any update on this issue?
Really need this feature, currently, no golang graphql client provide this feature.

https://github.com/hasura/go-graphql-client seems to provide subscriptions