-
Notifications
You must be signed in to change notification settings - Fork 843
Subscription Support #577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, @yhc44 Seems I'm going to do the same 👎 . I really wanted my graphql microservice was built in golang. It's so sad. |
Hey @yhc44 and @rick-meli , I share your thoughts.. A while back, this was part of the reasons why I started developing a GraphQL package in Go, with a similar, but different approaches. Since then, the core implementation got into a stable phase, and the additional features are still in development, but at my company we are confident enough to use it in projects that are we are currently working on. It has Subscriptions, Apollo Federation, field directives support, and many more features are coming, since I’m pumped to get them implemented, and personally we’ll also need them at work. So if you are still in the decision making, I would encourage you to check out the repo, see the examples, try it, check if it meet you needs and ask me any questions if you have. |
Can you give a try will gqlgen? They generate go code from GraphQL schema, in-active development and subscription supported. |
Hi @yhc44! –– Thanks for giving a try to the lib and sharing your thoughts:
Actually we do try our best to actively maintain it, this is a concern that was raised in a previous issue: Going out of life? and as pointed out in that issue hopefully we can catch-up on the awesome PRs that are to be reviewed & merge:
If you mean with But we do have Line 10 in 2b0b734
And here is a small working example: #49 (comment)
If with
If you could expand on this would be cool.
That would be a good alternative since graphql-js have the latest GraphQL Spec features because the nature of being the reference implementation. |
Hey @chris-ramon, thanks for your detailed answer. With field names i mean for example subscription {
onCreateCluster {
id
}
} I implemented your pubsub example, which is working fine. But how can i retrieve the field id in this example? I dont want to return all fields that i have on the specific object. I just want to return {
id: '1337'
} not {
id: '1337',
...allOtherFields (e.g name)
} Sorry for my initial title btw. Was not very specific. |
Hey @chris-ramon, do you already have an ETA for PR #495? The last real commit to that PR was almost a year ago and as far as I can tell everything seems to work as intended (also see @bhoriuchi's comment from November). Are we still waiting for something else? Thanks! |
Subscription Support Resolved via: #495 — @yhc44 feel free to file a new issue if is the case in regards your question above: #577 (comment) ( You should be receiving as part of the response only the fields that your query/subscription includes. ) |
i guess should add new example of subscription / ws in folders example on official repo |
Hey, it is very sad, that this project seems not being actively maintained.
I used it for some days now and sadly there are some things missing (real subscriptions, field names in queries etc.) so im switching to nodejs in my graphql microservice.
The text was updated successfully, but these errors were encountered: