Skip to content

svhawks/rails-graphql-generator

Repository files navigation

Rails GraphQL Generator

This project is not maintained anymore. You can use graphql-ruby's generators.

Code Climate

A GraphQL Relay schema created by reflection over a Rails models

Demo

Check out the example for a demo of Rails GraphQL Generator in action.

Usage

Add your Gemfile:

gem 'rails-graphql-generator', '~> 0.1.0'
bundle install

and then just run it!

rails g graphql:init

rails g graphql:create_all

# or

rails g model User name:string email:string
rake db:migrate
rails g graphql User

and start server http://localhost:3000/graphiql

Road Map

  • Add test
  • Add without relay option