This commit is contained in:
sunli 2020-04-23 11:46:48 +08:00
parent 7a4d3f2899
commit 4b7a388025
5 changed files with 11 additions and 11 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql"
version = "1.9.12"
version = "1.9.13"
authors = ["sunli <scott_s829@163.com>"]
edition = "2018"
description = "The GraphQL server library implemented by rust"
@ -18,7 +18,7 @@ default = ["bson", "uuid", "url", "chrono-tz", "validators"]
validators = ["regex"]
[dependencies]
async-graphql-derive = { path = "async-graphql-derive", version = "1.9.12" }
async-graphql-derive = { path = "async-graphql-derive", version = "1.9.13" }
graphql-parser = "=0.2.3"
anyhow = "1.0.26"
thiserror = "1.0.11"

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql-actix-web"
version = "1.1.0"
version = "1.1.1"
authors = ["sunli <scott_s829@163.com>"]
edition = "2018"
description = "async-graphql for actix-web"
@ -13,7 +13,7 @@ keywords = ["futures", "async", "graphql"]
categories = ["network-programming", "asynchronous"]
[dependencies]
async-graphql = { path = "..", version = "1.9.12" }
async-graphql = { path = "..", version = "1.9.13" }
actix-web = "2.0.0"
actix-web-actors = "2.0.0"
actix = "0.9.0"

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql-derive"
version = "1.9.12"
version = "1.9.13"
authors = ["sunli <scott_s829@163.com>"]
edition = "2018"
description = "Macros for async-graphql"

View File

@ -209,12 +209,12 @@ pub fn generate(object_args: &args::Object, item_impl: &mut ItemImpl) -> Result<
let create_field_stream = match &ty {
OutputType::Value(_) => quote! {
self.#ident(#ctx_param #(#use_params),*).await
#crate_name::futures::stream::StreamExt::fuse(self.#ident(#ctx_param #(#use_params),*).await)
},
OutputType::Result(_, _) => {
quote! {
self.#ident(#ctx_param #(#use_params),*).await.
map_err(|err| err.into_error_with_path(ctx.position, ctx.path_node.as_ref().unwrap().to_json()))?
#crate_name::futures::stream::StreamExt::fuse(self.#ident(#ctx_param #(#use_params),*).await.
map_err(|err| err.into_error_with_path(ctx.position, ctx.path_node.as_ref().unwrap().to_json()))?)
}
}
};
@ -227,7 +227,7 @@ pub fn generate(object_args: &args::Object, item_impl: &mut ItemImpl) -> Result<
let schema = schema.clone();
let pos = ctx.position;
let environment = environment.clone();
let stream = #crate_name::futures::stream::StreamExt::then(#create_field_stream.fuse(), move |msg| {
let stream = #crate_name::futures::stream::StreamExt::then(#create_field_stream, move |msg| {
let environment = environment.clone();
let field_selection_set = field_selection_set.clone();
let schema = schema.clone();

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql-warp"
version = "1.1.0"
version = "1.1.1"
authors = ["sunli <scott_s829@163.com>"]
edition = "2018"
description = "async-graphql for warp"
@ -13,7 +13,7 @@ keywords = ["futures", "async", "graphql"]
categories = ["network-programming", "asynchronous"]
[dependencies]
async-graphql = { path = "..", version = "1.9.12" }
async-graphql = { path = "..", version = "1.9.13" }
warp = "0.2.2"
futures = "0.3.0"
bytes = "0.5.4"