Automatic GraphQL Schema Generation for Rails and ActiveRecord.
This project is currently a very early WIP. See Roadmap below for requirements leading up to a usable state.
WIP; TBD
WIP; TBD
Add this line to your application's Gemfile:
gem 'autographql'
And then execute:
$ bundle
Or install it yourself as:
$ gem install autographql
- v0.1.0 - Initial Release.
- Discovery
- Initializer
- Automatic model discovery.
- Default controller.
- Custom endpoint support.
- Custom controller support.
- Typing
- Simple model-to-type generation.
- Automatic attribute support.
- Simple relation support.
- Complex relation support.
- Scope support.
- Custom attribute support.
- Draper support.
- Security
- Authentication callback support (Cancan, Pundit).
- Whitelisting support.
- Optional schema hiding.
- Performance
- Eager loading based on query analysis.
- Miscellaneous
- Schema nesting.
- Support outside of Rails.
- "Eject" support.
- Documentation generation.
- GraphiQL.
- Discovery
Contributions currently accepted in the form of pull requests, gists or issues. This project and its contributors endeavor to follow the Ruby on Rails Code of Conduct.
The gem is available as open source under the terms of the MIT License.