Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.