Fix non-async resolvers with returns in the async case
This commit is contained in:
parent
ef2277c80f
commit
0929bad163
1 changed files with 1 additions and 1 deletions
|
@ -901,7 +901,7 @@ impl GraphQLTypeDefiniton {
|
||||||
|
|
||||||
quote!(
|
quote!(
|
||||||
#name => {
|
#name => {
|
||||||
let res #_type = { #code };
|
let res #_type = (||{ #code })();
|
||||||
let res2 = #juniper_crate_name::IntoResolvable::into(
|
let res2 = #juniper_crate_name::IntoResolvable::into(
|
||||||
res,
|
res,
|
||||||
executor.context()
|
executor.context()
|
||||||
|
|
Loading…
Reference in a new issue