Rust:async-graphql(服务端)
graphql-github-io-zh-Hans生态项目与库
Rust:async-graphql(服务端)
描述: Async-graphql 是一个高性能的服务端库,支持所有 GraphQL 规范。
链接: GitHub
示例
rust
use async_graphql::*;
struct Query;
#[Object]
impl Query {
/// Returns the sum of a and b
async fn add(&self, a: i32, b: i32) -> i32 {
a + b
}
}
帮助我们改进文档
发现翻译问题或内容错误?请告诉我们。
