rmosolgo / graphql-ruby

Ruby implementation of GraphQL
http://graphql-ruby.org
MIT License
5.36k stars 1.37k forks source link

Unhandled GraphQL subscription error ReferenceError: document is not defined #2584

Closed hugoh59 closed 4 years ago

hugoh59 commented 4 years ago

I'm trying to setup a subscription with my React Native app and Rails Graphql server but I get the following error message.

Unhandled GraphQL subscription error ReferenceError: document is not defined

I followed this guide: https://haughtcodeworks.com/blog/software-development/graphql-rails-react-standalone/

Any idea how to solve that?

rmosolgo commented 4 years ago

Hi! Sorry I'm slow to respond here. I don't know about that error. Could you please share some more information about it?

hugoh59 commented 4 years ago

I've encoutered this error trying to implement subscriptions on my React Native App Following this tutorial https://haughtcodeworks.com/blog/software-development/graphql-rails-react-standalone/

pshettigar26 commented 1 year ago

@hugoh59 Hi that link is not working for me. Why? i also need to implement graphql subscription using ruby on rails . can you please help me to get proper example project. i am not getting proper document to implement it. #GraphqlSubscription #Ruby #Rails #actioncable #Graphql