No release in over 3 years
Low commit activity in last 3 years
A rails engine for easily mounting Graphql Voyager.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

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.