rmosolgo / graphiql-rails

Mount the GraphiQL query editor in a Rails app
MIT License
447 stars 135 forks source link

How to use this gem with graphql subscription? #77

Closed hugoh59 closed 7 months ago

rmosolgo commented 7 months ago

Hey, I don't think it's possible to use this gem with Subscriptions since you'll need to use custom JavaScript. But you can install graphiql using your app's JS package manager (npm, yarn, etc...) and then create a custom graphiql "fetcher". For example: https://graphql-ruby.org/javascript_client/graphiql_subscriptions.html

I hope that helps!