mirror of
https://github.com/actix/examples
synced 2025-06-29 02:10:36 +02:00
async-graphql-demo: move README.md up (#368)
This commit is contained in:
@ -1,33 +0,0 @@
|
||||
Getting started using [Async-graphql](https://github.com/async-graphql/async-graphql) with Actix web.
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
cargo run --bin async-graphql-demo
|
||||
```
|
||||
|
||||
## Endpoints
|
||||
|
||||
GET http://127.0.0.1:8000/ GraphQL Playground UI
|
||||
POST http://127.0.0.1:8000/ For GraphQL query
|
||||
|
||||
## Query Examples
|
||||
|
||||
```graphql
|
||||
{
|
||||
humans {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
name
|
||||
friends {
|
||||
id
|
||||
name
|
||||
}
|
||||
appearsIn
|
||||
homePlanet
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user