Skip to content

Add async-graphql rust crate #865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion src/content/code/code.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,25 @@ sleep

### Rust

- [graphql-rust/juniper](https://github.com/graphql-rust/juniper): GraphQL server library for Rust
#### [Async-graphql](https://github.com/async-graphql/async-graphql)

Async-graphql is a high-performance server-side library that supports all GraphQL specifications.

```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
}
}
```

#### [graphql-rust/juniper](https://github.com/graphql-rust/juniper): GraphQL server library for Rust

### Scala

Expand Down