Updated book for master ***NO_CI***
This commit is contained in:
parent
31e380fd68
commit
5c17ae83f1
4 changed files with 6 additions and 6 deletions
|
@ -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
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue