Update Readme
Update warp example
This commit is contained in:
parent
cac6023bc8
commit
73548434b7
|
@ -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
|
||||
|
||||
|
|
|
@ -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())
|
||||
/// });
|
||||
|
|
Loading…
Reference in New Issue
Block a user