Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/f/graphqljs-rails
- Owner: f
- License: mit
- Created: 2017-02-17T13:45:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-28T10:56:34.000Z (over 7 years ago)
- Last Synced: 2024-10-12T13:11:07.634Z (3 months ago)
- Topics: graphql, graphql-client, javascript, rails, ruby
- Language: JavaScript
- Homepage: https://rubygems.org/gems/graphqljs-rails
- Size: 36.1 KB
- Stars: 15
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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).