swarthout / feathers-apollo

Feathers and Apollo Server Sample Project
MIT License
176 stars 20 forks source link

apollo subscription #9

Open veeramarni opened 7 years ago

veeramarni commented 7 years ago

Have you played with graphql-subscriptions?

https://dev-blog.apollodata.com/graphql-subscriptions-in-apollo-client-9a2457f015fb#.pq8cy0x93

swarthout commented 7 years ago

I have not played with it yet, but it looks interesting. I am wondering if it would be possible to do this automatically by capturing the events from feathers hooks and sending them over a websocket. The default feathers has a very similar behavior with socket.io, but you do not have to configure it at all https://docs.feathersjs.com/real-time/socket-io.html

poupryc commented 6 years ago

@swarthout Any updates on that?

swarthout commented 6 years ago

I looked at the documentation for the feathers buzzard release and I saw that feathers has a channels abstraction for real-time events. I would like input on this as I update this project to the latest version of feathers and Apollo. It looks like feathers channels could work well with the Apollo graphql subscriptions

poupryc commented 6 years ago

it would just be unbelievable ! I don't know enough about the latest update to help you, sorry. I hope to hear from you soon !