Registry / web-framework / async-graphql

async-graphql

JSON →
library7.0.15rscratesunverified

A GraphQL server library implemented in Rust, supporting async/await.

# Cargo.toml [dependencies] async-graphql = "7.0.15"
INSTALL
IMPORT
SIG · ASYNC-GRAPHQL
A
async-graphql
web-frameworkrustv7.0.15
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Object
use async_graphql::Object;

Defines a simple GraphQL query object.

use async_graphql::{Object, SimpleObject}; #[derive(SimpleObject)] struct Query { value: i32, } #[async_graphql::Object] impl Query { async fn value(&self) -> i32 { self.value } } fn main() { println!("Async GraphQL schema ready"); }
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio) for execution
fix
Add `tokio` as a dependency and use `#[tokio::main]` or similar.
affects: >=7.0.0
Upgrade
Version history
7.0.15latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
async-graphql — cargo add async-graphql · libregistry