Skip to content

About

GraphQL API plugin for Spina CMS

Topics

Resources

Stars

2 stars

Watchers

4 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

SpinaGraphql

GraphQL plugin for Spina CMS.

Installation

Add this line to your application's Gemfile:

gem 'spina_graphql'

And then execute:

$ bundle

Or install it yourself as:

$ 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

  • Tests
  • All the models
  • Queries optimization
  • General authorization
  • 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.

About

GraphQL API plugin for Spina CMS

Topics

Resources

Stars

2 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages