{"id":13726804,"url":"https://github.com/atsuhiro/codegen-for-async-graphql","last_synced_at":"2025-05-07T22:30:33.693Z","repository":{"id":41875191,"uuid":"273022720","full_name":"atsuhiro/codegen-for-async-graphql","owner":"atsuhiro","description":"Generate code from GraphQL schema","archived":true,"fork":false,"pushed_at":"2022-04-25T08:42:12.000Z","size":250,"stargazers_count":30,"open_issues_count":2,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-17T00:10:31.159Z","etag":null,"topics":["async-graphql","graphql","rust","scaffolding"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/atsuhiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-17T16:17:59.000Z","updated_at":"2024-08-31T17:51:06.000Z","dependencies_parsed_at":"2022-08-11T20:00:31.529Z","dependency_job_id":null,"html_url":"https://github.com/atsuhiro/codegen-for-async-graphql","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/atsuhiro%2Fcodegen-for-async-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsuhiro%2Fcodegen-for-async-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsuhiro%2Fcodegen-for-async-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atsuhiro%2Fcodegen-for-async-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atsuhiro","download_url":"https://codeload.github.com/atsuhiro/codegen-for-async-graphql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252965076,"owners_count":21832817,"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":["async-graphql","graphql","rust","scaffolding"],"created_at":"2024-08-03T01:03:23.553Z","updated_at":"2025-05-07T22:30:33.343Z","avatar_url":"https://github.com/atsuhiro.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# codegen-for-async-graphql\n\n[![codecov](https://codecov.io/gh/atsuhiro/codegen-for-async-graphql/branch/master/graph/badge.svg)](https://codecov.io/gh/atsuhiro/codegen-for-async-graphql)\n\n## Usage\n\n```bash\ncargo codegen-for-async-graphql --schema {path_to_schema} --output {path_to_output}\n# cargo codegen-for-async-graphql --schema ./schema.graphql --output src/models\n```\n\n```rust\nmod models;\n\nuse async_graphql::*;\n\nuse models::{\n  Mutation, Query,\n};\n\nlet data_source = DataSource {};\nlet schema = Schema::build(Query {}, Mutation {}, EmptySubscription)\n    .register_type::\u003cUser\u003e()\n    .data(data_source)\n    .finish();\nlet res = schema.execute(query).await;\nlet json = serde_json::to_string_pretty(\u0026async_graphql::http::GQLResponse(res));\njson.unwrap()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatsuhiro%2Fcodegen-for-async-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatsuhiro%2Fcodegen-for-async-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatsuhiro%2Fcodegen-for-async-graphql/lists"}