Updated book for master ***NO_CI***

This commit is contained in:
Juniper Bot 2020-03-10 05:45:33 +00:00
parent f96e8f88aa
commit 38e6750474
5 changed files with 6 additions and 6 deletions

View file

@ -285,7 +285,7 @@ impl Context {
let ctx = Context::new(cult_loader); let ctx = Context::new(cult_loader);
// Execute // Execute
let future_execute = data.execute_async(&st, &ctx); let future_execute = data.execute(&st, &ctx);
let res = rt.run_until(future_execute); let res = rt.run_until(future_execute);
let json = serde_json::to_string(&res).map_err(error::ErrorInternalServerError)?; let json = serde_json::to_string(&res).map_err(error::ErrorInternalServerError)?;

View file

@ -341,7 +341,7 @@ fn main() {
let ctx = Ctx(Episode::NewHope); let ctx = Ctx(Episode::NewHope);
// Run the executor. // Run the executor.
let (res, _errors) = juniper::execute( let (res, _errors) = juniper::execute_sync(
"query { favoriteEpisode }", "query { favoriteEpisode }",
None, None,
&Schema::new(Query, EmptyMutation::new()), &Schema::new(Query, EmptyMutation::new()),
@ -2103,7 +2103,7 @@ impl Context {
let ctx = Context::new(cult_loader); let ctx = Context::new(cult_loader);
// Execute // Execute
let future_execute = data.execute_async(&st, &ctx); let future_execute = data.execute(&st, &ctx);
let res = rt.run_until(future_execute); let res = rt.run_until(future_execute);
let json = serde_json::to_string(&res).map_err(error::ErrorInternalServerError)?; let json = serde_json::to_string(&res).map_err(error::ErrorInternalServerError)?;

View file

@ -296,7 +296,7 @@ fn main() {
let ctx = Ctx(Episode::NewHope); let ctx = Ctx(Episode::NewHope);
// Run the executor. // Run the executor.
let (res, _errors) = juniper::execute( let (res, _errors) = juniper::execute_sync(
"query { favoriteEpisode }", "query { favoriteEpisode }",
None, None,
&Schema::new(Query, EmptyMutation::new()), &Schema::new(Query, EmptyMutation::new()),

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long