Updated book for master ***NO_CI***

This commit is contained in:
Juniper Bot 2019-05-06 03:28:56 +00:00
parent 31e380fd68
commit 5c17ae83f1
4 changed files with 6 additions and 6 deletions

View file

@ -1440,7 +1440,7 @@ fn context_factory(_: &mut Request) -> IronResult<()> {
struct Root;
graphql_object!(Root: () |&self| {
juniper::graphql_object!(Root: () |&self| {
field foo() -> String {
"Bar".to_owned()
}
@ -1487,7 +1487,7 @@ fn context_factory(req: &mut Request) -> IronResult<Context> {
struct Root;
graphql_object!(Root: Context |&self| {
juniper::graphql_object!(Root: Context |&self| {
field my_addr(&executor) -> String {
let context = executor.context();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -173,7 +173,7 @@ fn context_factory(_: &mut Request) -> IronResult<()> {
struct Root;
graphql_object!(Root: () |&self| {
juniper::graphql_object!(Root: () |&self| {
field foo() -> String {
"Bar".to_owned()
}
@ -220,7 +220,7 @@ fn context_factory(req: &mut Request) -> IronResult<Context> {
struct Root;
graphql_object!(Root: Context |&self| {
juniper::graphql_object!(Root: Context |&self| {
field my_addr(&executor) -> String {
let context = executor.context();