{"id":23103959,"url":"https://github.com/benaubin/graphql-model","last_synced_at":"2026-04-28T11:03:37.105Z","repository":{"id":86440604,"uuid":"100201738","full_name":"benaubin/graphql-model","owner":"benaubin","description":"A Ruby library to make using GraphQL 100% more awesome","archived":false,"fork":false,"pushed_at":"2017-08-18T21:54:11.000Z","size":68,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T21:44:46.370Z","etag":null,"topics":["dsl","graphql","graphql-client","ruby"],"latest_commit_sha":null,"homepage":null,"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/benaubin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-13T20:05:35.000Z","updated_at":"2017-08-14T03:46:30.000Z","dependencies_parsed_at":"2023-07-13T17:30:30.038Z","dependency_job_id":null,"html_url":"https://github.com/benaubin/graphql-model","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/benaubin/graphql-model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benaubin%2Fgraphql-model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benaubin%2Fgraphql-model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benaubin%2Fgraphql-model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benaubin%2Fgraphql-model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benaubin","download_url":"https://codeload.github.com/benaubin/graphql-model/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benaubin%2Fgraphql-model/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32377599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dsl","graphql","graphql-client","ruby"],"created_at":"2024-12-17T00:29:58.828Z","updated_at":"2026-04-28T11:03:37.082Z","avatar_url":"https://github.com/benaubin.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphQL::Model\n\nA Ruby library to make using GraphQL 100% more awesome\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'graphql-model'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install graphql-model\n\n## Usage\n\nDefine your class.\n\n```ruby\nclass Character \u003c GraphQL::Model::Base\n  attributes :name, :appears_in\n\n  graphql_path \"http://graphql-ruby-demo.herokuapp.com/queries\"\n\n  define_query :hero do\n    def query(episode: :Episode)\n      f = fragment\n      super do\n        hero(episode: episode) do\n          _ f\n        end\n      end\n    end\n  end\nend\n```\n\nThen execute your queries.\n\n```ruby\n $ Character.query_hero(episode: :EMPIRE)\n=\u003e {\n     \"hero\" =\u003e Character\u003cname: \"Luke Skywalker\", appears_in: [\"NEWHOPE\", \"EMPIRE\", \"JEDI\"]\u003e\n   }\n```\n\n[Learn more](https://github.com/benaubin/graphql-model/wiki/Fields).\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. 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/[USERNAME]/graphql-model. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\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## Code of Conduct\n\nEveryone interacting in the Graphql::Model project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/graphql-model/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenaubin%2Fgraphql-model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenaubin%2Fgraphql-model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenaubin%2Fgraphql-model/lists"}