@defer
/ @stream
A demo of GraphQL subscriptions and "exploratory" @defer
and @stream
directives with Ruby on Rails.
This uses a WIP branch of graphql-ruby
and graphql-streaming
$ gem install bundler
(install Bundler, Ruby's package manager with)$ bundle install
(install this project's dependencies from Gemfile
)$ bundle exec rake db:create db:seed
(setup the database and add seed data)$ bundle exec rails server
(start the development server)$ open http://localhost:3000/
(visit the app)http://localhost:3000/action_cable_transport
GraphQLChannel
from graphql-streaming
Transfer-Encoding: chunked
transport
\n\n
-delimited chunks over a streaming HTTP responsehttp://localhost:3000/chunked_transport
StreamingGraphQLClient
from graphql-streaming