{"id":15588152,"url":"https://github.com/hschne/graphql-groups-demo","last_synced_at":"2026-01-07T20:09:07.112Z","repository":{"id":40000585,"uuid":"283853171","full_name":"hschne/graphql-groups-demo","owner":"hschne","description":"A demo project for graphql-groups","archived":false,"fork":false,"pushed_at":"2023-01-19T20:15:11.000Z","size":3614,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T23:56:10.015Z","etag":null,"topics":["demo","graphql-ruby","grapqhl","heroku","ruby","ruby-gem"],"latest_commit_sha":null,"homepage":"https://graphql-groups-demo.herokuapp.com/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hschne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-30T18:50:09.000Z","updated_at":"2021-10-13T07:36:48.000Z","dependencies_parsed_at":"2023-02-11T20:25:27.241Z","dependency_job_id":null,"html_url":"https://github.com/hschne/graphql-groups-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hschne%2Fgraphql-groups-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hschne%2Fgraphql-groups-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hschne%2Fgraphql-groups-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hschne%2Fgraphql-groups-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hschne","download_url":"https://codeload.github.com/hschne/graphql-groups-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162671,"owners_count":20733461,"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":["demo","graphql-ruby","grapqhl","heroku","ruby","ruby-gem"],"created_at":"2024-10-02T22:21:38.719Z","updated_at":"2026-01-07T20:09:07.004Z","avatar_url":"https://github.com/hschne.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo for GraphQL Groups\n\nTo showcase [graphql-groups](https://github.com/hschne/graphql-groups) this demo project allows you to retrive statistical\ndata surrounding a dataset of movies. You can play around with it here: [https://graphql-groups-demo.herokuapp.com/](https://graphql-groups-demo.herokuapp.com/)\n\nMovies have attributes like revenue, their release date and so on. See the queries below for some inspiration of what kind\nof information you can retrieve. \n\nThen check [`movie_group_type`](./app/graphql/types/movie_group_type.rb) and  [`movie_group_result_type`](./app/graphql/types/movie_group_result_type.rb) \nfor the implementation.\n\n#### Movie count per on runtime\n\n```graphql\nquery runtimeCount{\n  groupBy {\n    runtime {\n      key\n      count\n    }\n  }\n}\n```\n\n#### Average revenue of all movies per year\n\n```graphql\nquery revenueAverage{\n  groupBy {\n     releaseDate(timeframe:YEAR) {\n      key\n      count\n      avg {\n        revenue\n      }\n    }\n  }\n}\n```\n\n#### Movies per rating per year, as well as minumum and maximum budget per group\n\n```graphql\nquery yearRatingBudgets {\n  groupBy {\n     releaseDate(timeframe:YEAR) {\n      key\n      groupBy {\n        popularity {\n          key\n          count\n          max {\n            budget\n          }\n          min {\n            budget\n          }\n        }\n      }\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhschne%2Fgraphql-groups-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhschne%2Fgraphql-groups-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhschne%2Fgraphql-groups-demo/lists"}