Skip to content

gautiselvaraj/graphql_playground-rails

 
 

Repository files navigation

Gem Version

GraphqlPlayground::Rails

A blatant copy of GraphiQL::Rails with much less functionality but with GraphQL Playground instead.

Installation

Add this line to your application's Gemfile:

gem 'graphql_playground-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install graphql_playground-rails

Mount the Engine

Add the engine to routes.rb:

# config/routes.rb
Rails.application.routes.draw do
  # ...
  if Rails.env.development?
    mount GraphqlPlayground::Rails::Engine, at: "/graphql_playground", graphql_path: "/your/endpoint"
  end
end

Contributing

Submit a PR.

License

The gem is available as open source under the terms of the MIT License.

About

An engine to provice GraphQL Playground on Rails

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 50.4%
  • CSS 25.9%
  • HTML 21.0%
  • JavaScript 2.7%