graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Is there any plan to support subscription?

Open lynic opened this issue 7 years ago • 5 comments
trafficstars

lynic avatar Aug 06 '18 13:08 lynic

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.

dmitshur avatar Aug 07 '18 03:08 dmitshur

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

adamgoose avatar Dec 28 '18 06:12 adamgoose

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

theoks avatar Jun 06 '19 12:06 theoks

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

imrajdas avatar Jul 10 '20 18:07 imrajdas

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

KlausVii avatar Mar 24 '21 12:03 KlausVii