https://github.com/mbajur/spina_graphql
GraphQL API plugin for Spina CMS
https://github.com/mbajur/spina_graphql
gem graphql rails-engine rails-plugins ruby ruby-on-rails spina-cms
Last synced: 4 months ago
JSON representation
GraphQL API plugin for Spina CMS
- Host: GitHub
- URL: https://github.com/mbajur/spina_graphql
- Owner: mbajur
- License: mit
- Created: 2018-02-03T09:03:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-16T20:58:19.000Z (over 7 years ago)
- Last Synced: 2025-01-10T23:28:24.247Z (6 months ago)
- Topics: gem, graphql, rails-engine, rails-plugins, ruby, ruby-on-rails, spina-cms
- Language: Ruby
- Homepage:
- Size: 68.4 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# SpinaGraphql
GraphQL plugin for Spina CMS.## Installation
Add this line to your application's Gemfile:```ruby
gem 'spina_graphql'
```And then execute:
```bash
$ bundle
```Or install it yourself as:
```bash
$ gem install spina_graphql
```## Usage
To mount SpinaGraphql inside your rails/spina application, add the following line to your routes file:mount SpinaGraphql::Engine, at: "/api"
We're not including GraphiQL gem with SpinaGraphql so, if you want to use it, you need add it on your own:
gem 'graphiql-rails', groups: [:development]
After that, mount it in your root app:
if Rails.env.development?
mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "/api/graphql"
end## To do
- [x] Tests
- [ ] All the models
- [ ] Queries optimization
- [x] General authorization
- [x] Specific fields / connections authorization
- [ ] Mutations## Contributing
Contribution directions go here.## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).