Update book

This commit is contained in:
Sunli 2020-10-14 09:10:06 +08:00
parent 39ba3b4aec
commit 59575fdb57
4 changed files with 17 additions and 0 deletions

View File

@ -32,3 +32,7 @@ async fn index_ws(
ws::start_with_protocols(WSSubscription::new(&schema), &["graphql-ws"], &req, payload)
}
```
## More examples
https://github.com/async-graphql/examples/tree/master/actix-web

View File

@ -30,3 +30,7 @@ let schema = Schema::new(QueryRoot, EmptyMutation, SubscriptionRoot);
let filter = async_graphql_warp::graphql_subscription(schema);
warp::serve(filter).run(([0, 0, 0, 0], 8000)).await;
```
## More examples
https://github.com/async-graphql/examples/tree/master/warp

View File

@ -29,3 +29,8 @@ async fn index_ws(
ws::start_with_protocols(WSSubscription::new(&schema), &["graphql-ws"], &req, payload)
}
```
## 更多例子
https://github.com/async-graphql/examples/tree/master/actix-web

View File

@ -29,3 +29,7 @@ let schema = Schema::new(QueryRoot, EmptyMutation, SubscriptionRoot);
let filter = async_graphql_warp::graphql_subscription(schema);
warp::serve(filter).run(([0, 0, 0, 0], 8000)).await;
```
## 更多例子
https://github.com/async-graphql/examples/tree/master/warp