Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/f/graphqljs-rails

GraphQL.js Rails for Rails 5
https://github.com/f/graphqljs-rails

graphql graphql-client javascript rails ruby

Last synced: 3 months ago
JSON representation

GraphQL.js Rails for Rails 5

Awesome Lists containing this project

README

        

# GraphQL.js for Rails

Adds [GraphQL.js](https://github.com/f/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](https://github.com/rmosolgo/graphql-ruby). This gem works with [GraphQL-Ruby](https://github.com/rmosolgo/graphql-ruby).

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'graphqljs-rails'
```

And then execute:

$ bundle install

And install it to your `application.js`:

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

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).