https://github.com/async-graphql/examples
https://github.com/async-graphql/examples
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/async-graphql/examples
- Owner: async-graphql
- Created: 2020-04-14T03:42:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2025-01-06T01:15:38.000Z (6 months ago)
- Last Synced: 2025-04-12T06:14:17.804Z (2 months ago)
- Language: Rust
- Size: 770 KB
- Stars: 229
- Watchers: 11
- Forks: 56
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Examples for async-graphql
A git submodule that shows example async-graphql projects.
## Directory structure
- [poem] Examples for `poem`
- [actix-web] Examples for `actix-web`
- [warp] Examples for `warp`
- [tide] Examples for `tide`
- [rocket] Examples for `rocket`
- [axum] Examples for `axum`
- [loco] Examples for `loco`
- [federation] Examples for [Apollo Federation](https://www.apollographql.com/docs/federation/)## Running Examples
To run the examples, clone the top-level repo, [async-graphql](https://github.com/async-graphql/async-graphql) and then issue the following commands:
```bash
git clone async-graphql/async-graphql
# in async-graphql repo, install needed dependencies
cargo build# update this repo as a git submodule
git submodule update
```To run the example axum-starwars:
```
# change into the example folder and run a relevant binary
cargo run --bin axum-starwars
```To list all available binary targets:
```
cargo run --bin
```