GraphQL.js Rails for Rails 5
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app/assets/javascripts
lib/graphqljs
.gitignore
.rspec
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
graphqljs-rails.gemspec

README.md

GraphQL.js for Rails

Adds GraphQL.js to your asset pipeline.

Features

  • Nothing depended, plain vanilla JavaScript.
  • Plug & Play.
  • Runs on most of the browsers.
  • For more information and read how to use GraphQL.js in your Rails application, visit [f/graphql.js] (https://github.com/f/graphql.js)

If you are looking for a server try GraphQL-Ruby. This gem works with GraphQL-Ruby.

Installation

Add this line to your application's Gemfile:

gem 'graphqljs-rails'

And then execute:

$ bundle install

And install it to your application.js:

//= require graphql
var graph = graphql("/graphql", {
  fragments: {
    ...
  }
})

License

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