Socket
Book a DemoInstallSign in
Socket

graphql-voyager-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-voyager-rails

bundlerRubygems
Version
1.0.4
Version published
Maintainers
1
Created
Source

GraphQL Voyager Rails

Easily mount GraphQL Voyager on your rails app.

image

Usage

Mount GraphQL Voyager in your config/routes.rb:

mount Graphql::Voyager::Rails::Engine, at: "/graphql-voyager", graphql_path: "/graphql"

Precompile assets in your config/application.rb:

config.assets.precompile += [
  'graphql/voyager/rails/application.css',
  'graphql/voyager/rails/application.js',
  'graphql/voyager/rails/voyager.js'
]

Now you should be able to access GraphQL Voyager at: http://localhost:3000/graphql-voyager.

Installation

Add this line to your application's Gemfile:

gem 'graphql-voyager-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install graphql-voyager-rails

Contributing

Pull requests are always welcome.

License

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

Thanks

Gem originally based off on GraphiQL Rails and of course GraphQL Voyager.

FAQs

Package last updated on 20 Mar 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