1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00
examples/graphql/async-graphql
2022-12-30 16:25:40 +00:00
..
src update redis example to v0.22 2022-10-16 19:14:40 +01:00
Cargo.toml use workspace deps for log and env_logger 2022-12-30 16:25:40 +00:00
README.md fix static-files readme name 2022-02-18 03:36:04 +00:00

GraphQL using async-graphql

Getting started using async-graphql with Actix Web.

Usage

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

{
  humans {
    edges {
      node {
        id
        name
        friends {
          id
          name
        }
        appearsIn
        homePlanet
      }
    }
  }
}