From 73548434b7e10420691f1ae0387be5e8ebd183af Mon Sep 17 00:00:00 2001 From: sunli Date: Tue, 14 Apr 2020 11:44:08 +0800 Subject: [PATCH] Update Readme Update warp example --- README.md | 1 + async-graphql-warp/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 35541573..12f441cb 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/async-graphql-warp/src/lib.rs b/async-graphql-warp/src/lib.rs index 2255f70e..aa68f33a 100644 --- a/async-graphql-warp/src/lib.rs +++ b/async-graphql-warp/src/lib.rs @@ -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()) /// });