{"id":15043140,"url":"https://github.com/linksplatform/aqlgen","last_synced_at":"2025-10-08T00:31:41.244Z","repository":{"id":62444632,"uuid":"502693255","full_name":"linksplatform/aqlgen","owner":"linksplatform","description":"Schema generator for async-graphql 4.x","archived":false,"fork":true,"pushed_at":"2022-08-11T09:26:09.000Z","size":186,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-15T21:07:22.174Z","etag":null,"topics":["async-graphql","codegen","graphql","graphql-server","rust","schema-generation"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"uselessgoddess/codegen-for-async-graphql","license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linksplatform.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":"2022-06-12T18:13:00.000Z","updated_at":"2023-10-27T08:12:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/linksplatform/aqlgen","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/linksplatform%2Faqlgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linksplatform%2Faqlgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linksplatform%2Faqlgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linksplatform%2Faqlgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linksplatform","download_url":"https://codeload.github.com/linksplatform/aqlgen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235669382,"owners_count":19026815,"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","codegen","graphql","graphql-server","rust","schema-generation"],"created_at":"2024-09-24T20:48:37.432Z","updated_at":"2025-10-08T00:31:35.892Z","avatar_url":"https://github.com/linksplatform.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aqlgen - [**IN ARCHIVED**](https://github.com/linksplatform/aqlgen/issues/2)\n\nA schema generator for [async-graphql](https://github.com/async-graphql/async-graphql) 4.x\n\n## Quick start\n### Installation \nIn order to install, just run the following command\n```shell\ncargo install aqlgen\n```\n### Usage\n**Generate async-graphql 4.x schema in 4 easy steps**\n1. Create a new empty rust module \n```rust\n//! main.rs\nmod schema;\n\n...\n```\n2. Put your schema to any folder\n```graphql\n# example schema\ntype Book {\n    id: ID!\n    name: String!\n    author: String!\n}\n\ninput InputBook {\n    name: String!\n    author: String!\n}\n\ntype QueryRoot {\n    books: [Book!]\n}\n\ntype MutationRoot {\n    createBook(book: InputBook!): Book\n}\n```\n3. Run aqlgen\n```shell\n# in project/src\ncargo aqlgen --schema schema.graphql --output schema\n```\n4. Enjoy your generation\n```rust\n//! book.rs\nuse async_graphql::*;\n\n#[derive(Debug)]\npub struct Book;\n\n#[Object]\nimpl Book {\n    pub async fn id(\u0026self, ctx: \u0026Context\u003c'_\u003e) -\u003e ID {\n        todo!()\n    }\n    \n    pub async fn name(\u0026self, ctx: \u0026Context\u003c'_\u003e) -\u003e String {\n        todo!()\n    }\n    \n    pub async fn author(\u0026self, ctx: \u0026Context\u003c'_\u003e) -\u003e String {\n        todo!()\n    }\n}\n```\n\n```rust \n//! input_book.rs\nuse async_graphql::*;\n\n#[derive(InputObject, Debug)]\npub struct InputBook {\n    pub name: String,\n    pub author: String,\n}\n```\n\n```rust\n//! query_root.rs\nuse super::super::Book;\nuse async_graphql::*;\n\n#[derive(Debug)]\npub struct QueryRoot;\n\n#[Object]\nimpl QueryRoot {\n    pub async fn books(\u0026self, ctx: \u0026Context\u003c'_\u003e) -\u003e Option\u003cVec\u003cBook\u003e\u003e {\n        todo!()\n    }\n}\n```\n\n```rust\n//! mutation_root.rs\nuse super::super::{Book, InputBook};\nuse async_graphql::*;\n\n#[derive(Debug)]\npub struct MutationRoot;\n\n#[Object]\nimpl MutationRoot {\n    pub async fn create_book(\u0026self, ctx: \u0026Context\u003c'_\u003e, book: InputBook) -\u003e Option\u003cBook\u003e {\n        todo!()\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinksplatform%2Faqlgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinksplatform%2Faqlgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinksplatform%2Faqlgen/lists"}