Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql_playground_rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql_playground_rails

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

GraphqlPlaygroundRails

This is a Rails Engine that simply mounts the GraphQL Playground inside your Rails app.

There are several other gems doing the same thing, but somehow I haven't been able to make any of them work in Rails 6.0.

Usage

Mount it in your Rails app by editing config/routes.rb as such:

Rails.application.routes.draw do
  # (...)
  if Rails.env.development?
    mount GraphqlPlaygroundRails::Engine, at: '/gql', graphql_path: '/graphql'
  end
end

You will be able to access the playground at http://localhost:3000/gql after you restart your Rails server.

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

Acknowledgements

The structure of the engine has been inspired by graphiql-rails, which mounts GraphiQL rather than GraphQL Playground. The code to show the GraphQL Playground comes from the graphql-playground repository.

Contributing

Pull requests are welcome.

License

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

FAQs

Package last updated on 29 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc