Skip to content
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

Subscription #22

Closed
Nodepad opened this issue Jul 12, 2018 · 6 comments
Closed

Subscription #22

Nodepad opened this issue Jul 12, 2018 · 6 comments

Comments

@Nodepad
Copy link

Nodepad commented Jul 12, 2018

Are there any way to create subscription in Graphiti/GraphQL? I have found method subscription() in SchemaBuilder but could not understand how to do actual data notification.

@paulofaria
Copy link
Member

Hello, sorry for the delay. We don't provide support for subscriptions. Did you go further with this attempt?

@Nodepad
Copy link
Author

Nodepad commented Jul 24, 2018

I've tried to find a publish/subscribe Swift library for subscription implementation, but there is not much such staff, especially built on top of Apple NIO. Do you have ideas what library should be used?

@NeedleInAJayStack
Copy link
Member

Hey, I'd like to implement subscriptions into this repo and the GraphQLSwift/GraphQL repo. I'm planning to use RxSwift to provide the event streams, similar to how the Java GraphQL implementation does it.

A few questions for the maintainers:

  1. Do you forsee any significant architectural changes that will have to happen to implement the subscription event streaming into the resolvers?
  2. Do you see any large roadblocks?

Thanks!

@NeedleInAJayStack
Copy link
Member

I've submitted a pull request to add subscription support: #52

Thanks!

@NeedleInAJayStack
Copy link
Member

Hey @paulofaria, I think with my pull requests merged, we can close this issue. Thanks!!

@paulofaria
Copy link
Member

@NeedleInAJayStack thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants