Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql_scaffold

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql_scaffold

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

graphql scaffold graphql-ruby

Build Status Gem Version GitHub

Rails generator for scaffolding models with GraphQL-Ruby.

Installation

Install from RubyGems by adding it to your Gemfile:

# Gemfile
gem 'graphql_scaffold'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install graphql_scaffold

Dependencies

The scaffolded graphql queries, mutations and subscriptions depend on:

  • SearchObjectGraphql >= 0.3
  • SearchObject >= 1.2.3
  • Graphql >= 1.9.5

Besides this you may need to run the following command to begin with Graphql:

$ rails generate graphql:install

Usage

If you have a model already created:

$ rails generate graphql_scaffold model_example

If you want to create a model and scaffold your Graphql API:

$ rails generate graphql_scaffold model_example field1 field2:integer field3

After this, you may need to run rails db:migrate. The format for fields are the same as rails generate model.

Example

Todo

  • Create subscription scaffold
  • Better tests

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Run the tests (rake)
  6. Create new Pull Request

License

MIT License

FAQs

Package last updated on 20 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc