Update Readme

Update warp example
This commit is contained in:
sunli 2020-04-14 11:44:08 +08:00
parent cac6023bc8
commit 73548434b7
2 changed files with 2 additions and 1 deletions

View File

@ -61,6 +61,7 @@ cargo run --release
## Integrations
* Actix-web [async-graphql-actix-web](https://crates.io/crates/async-graphql-actix-web)
* Warp [async-graphql-warp](https://crates.io/crates/async-graphql-warp)
## License

View File

@ -51,7 +51,7 @@ impl Reject for BadRequest {}
/// }
///
/// let schema = Schema::new(QueryRoot, EmptyMutation, EmptySubscription);
/// let filter = async_graphql_warp::graphql(schema).and_then(|schema, builder| async move {
/// let filter = async_graphql_warp::graphql(schema).and_then(|(schema, builder): (_, QueryBuilder)| async move {
/// let resp = builder.execute(&schema).await;
/// Ok::<_, Infallible>(warp::reply::json(&GQLResponse(resp)).into_response())
/// });