{"id":27375113,"url":"https://github.com/katharostech/async_graphql_extras","last_synced_at":"2026-05-08T17:38:44.810Z","repository":{"id":66216711,"uuid":"342380129","full_name":"katharostech/async_graphql_extras","owner":"katharostech","description":"Experimental helper macros for use with async_graphql Rust crate","archived":false,"fork":false,"pushed_at":"2021-02-26T03:13:44.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-10T12:25:55.299Z","etag":null,"topics":["graphql","rust"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/katharostech.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,"governance":null}},"created_at":"2021-02-25T21:10:45.000Z","updated_at":"2021-02-26T03:13:46.000Z","dependencies_parsed_at":"2023-02-25T02:15:53.913Z","dependency_job_id":null,"html_url":"https://github.com/katharostech/async_graphql_extras","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"8f8d33a741205c637a4a50b7a1b18ddc86174d87"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/katharostech/async_graphql_extras","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katharostech%2Fasync_graphql_extras","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katharostech%2Fasync_graphql_extras/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katharostech%2Fasync_graphql_extras/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katharostech%2Fasync_graphql_extras/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/katharostech","download_url":"https://codeload.github.com/katharostech/async_graphql_extras/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katharostech%2Fasync_graphql_extras/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32790992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"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":["graphql","rust"],"created_at":"2025-04-13T12:14:29.475Z","updated_at":"2026-05-08T17:38:44.729Z","avatar_url":"https://github.com/katharostech.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# async_graphql_extras\n\n[![Crates.io](https://img.shields.io/crates/v/async_graphql_extras.svg)](https://crates.io/crates/async_graphql_extras)\n[![Docs.rs](https://docs.rs/async_graphql_extras/badge.svg)](https://docs.rs/async_graphql_extras)\n[![Katharos License](https://img.shields.io/badge/License-Katharos-blue)](https://github.com/katharostech/katharos-license)\n\nExperimental helper macros for use with [`async_graphql`].\n\n## Example\n```rust\nuse std::convert::Infallible;\nuse async_graphql::*;\nuse async_graphql_extras::graphql_object;\nuse warp::Filter;\n\ntype MySchema = Schema\u003cQuery, EmptyMutation, EmptySubscription\u003e;\n\nstruct Query;\n\n\n/// Information about the user\n#[graphql_object]\npub struct UserData {\n    username: String,\n    display_name: String,\n    // You can set a custom type to use for fields in the input mode\n    #[graphql_object(input_type = \"InputFavorites\")]\n    favorites: Favorites\n}\n\n#[graphql_object(\n    // You can override the default input type name\n    input_type_name=\"InputFavorites\"\n)]\npub struct Favorites {\n    food: String,\n}\n\n#[Object]\nimpl Query {\n    /// Ping endpoint that returns the same object as the input\n    // here the `user_input` arg has type `UserDataInput` which is the\n    // corresponding input type to `UserData` which was automatically\n    // generated.\n    async fn ping(\u0026self, user_input: UserDataInput) -\u003e UserData {\n        user_input.into()\n    }\n}\n\n#[tokio::main]\nasync fn main() {\n    let schema = Schema::new(Query, EmptyMutation, EmptySubscription);\n    let filter = async_graphql_warp::graphql(schema).and_then(\n        |(schema, request): (MySchema, async_graphql::Request)| async move {\n            // Execute query\n            let resp = schema.execute(request).await;\n\n            // Return result\n            Ok::\u003c_, Infallible\u003e(async_graphql_warp::Response::from(resp))\n        },\n    );\n    warp::serve(filter).run(([0, 0, 0, 0], 8000)).await;\n}\n```\n\n[`async_graphql`]: https://docs.rs/async_graphql\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatharostech%2Fasync_graphql_extras","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatharostech%2Fasync_graphql_extras","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatharostech%2Fasync_graphql_extras/lists"}