{"id":19300713,"url":"https://github.com/xuorig/graphql-ruby-generators","last_synced_at":"2025-06-30T23:41:52.483Z","repository":{"id":148157105,"uuid":"49758094","full_name":"xuorig/graphql-ruby-generators","owner":"xuorig","description":"Generators to create GraphQL types from ActiveRecord models.","archived":false,"fork":false,"pushed_at":"2016-01-16T20:08:15.000Z","size":7,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T01:37:52.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xuorig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-16T03:48:04.000Z","updated_at":"2021-06-30T19:15:15.000Z","dependencies_parsed_at":"2023-04-18T07:31:33.305Z","dependency_job_id":null,"html_url":"https://github.com/xuorig/graphql-ruby-generators","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xuorig/graphql-ruby-generators","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuorig%2Fgraphql-ruby-generators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuorig%2Fgraphql-ruby-generators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuorig%2Fgraphql-ruby-generators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuorig%2Fgraphql-ruby-generators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xuorig","download_url":"https://codeload.github.com/xuorig/graphql-ruby-generators/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xuorig%2Fgraphql-ruby-generators/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262869399,"owners_count":23377280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T23:15:38.182Z","updated_at":"2025-06-30T23:41:52.451Z","avatar_url":"https://github.com/xuorig.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graphql-Ruby Generators\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'graphql-ruby-generators'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install graphql-ruby-generators\n\n## Usage\n\nTo create a single GraphQL Type, use rails generate `graphql:type attributes[:type]`.\n\nFor example, to create a `PostType` run the generator this way:\n\n```\n  rails generate Post \"A blog post\" id:Id title:String body:String comments:[CommentType]\n```\n\nThis should generate the file `app/graph/post_type.rb` with this content:\n```ruby\nPostType = GraphQL::ObjectType.define do\n  name \"Post\"\n  description \"A blog post\"\n\n  field :id, !types.ID\n  field :title, !types.String\n  field :body, !types.String\n  field :comments, types[!CommentType]\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/xuorig/graphql-ruby-generators. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuorig%2Fgraphql-ruby-generators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxuorig%2Fgraphql-ruby-generators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxuorig%2Fgraphql-ruby-generators/lists"}