1
0
mirror of https://github.com/actix/examples synced 2024-11-24 06:43:00 +01:00
examples/graphql/async-graphql/README.md

39 lines
549 B
Markdown
Raw Normal View History

2022-02-17 22:29:55 +01:00
## GraphQL using `async-graphql`
> Getting started using [async-graphql](https://github.com/async-graphql/async-graphql) with Actix Web.
## Usage
2022-02-18 04:36:04 +01:00
```sh
2022-02-17 22:29:55 +01:00
cd graphql/graphql-demo
cargo run
```
## Endpoints
```
GET/POST http://localhost:8080/graphql GraphQL endpoint
GET http://localhost:8080/graphiql GraphQL playground UI
```
## Query Examples
```graphql
{
humans {
edges {
node {
id
name
friends {
id
name
}
appearsIn
homePlanet
}
}
}
}
```