Specify path to graphql_object module (#352)
This commit is contained in:
parent
0f78417f44
commit
dbfcc762da
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ fn context_factory(_: &mut Request) -> IronResult<()> {
|
||||||
|
|
||||||
struct Root;
|
struct Root;
|
||||||
|
|
||||||
graphql_object!(Root: () |&self| {
|
juniper::graphql_object!(Root: () |&self| {
|
||||||
field foo() -> String {
|
field foo() -> String {
|
||||||
"Bar".to_owned()
|
"Bar".to_owned()
|
||||||
}
|
}
|
||||||
|
@ -98,7 +98,7 @@ fn context_factory(req: &mut Request) -> IronResult<Context> {
|
||||||
|
|
||||||
struct Root;
|
struct Root;
|
||||||
|
|
||||||
graphql_object!(Root: Context |&self| {
|
juniper::graphql_object!(Root: Context |&self| {
|
||||||
field my_addr(&executor) -> String {
|
field my_addr(&executor) -> String {
|
||||||
let context = executor.context();
|
let context = executor.context();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue