Specify path to graphql_object module (#352)

This commit is contained in:
Rogerio Moura 2019-05-06 00:20:21 -03:00 committed by Christian Legnitto
parent 0f78417f44
commit dbfcc762da

View file

@ -47,7 +47,7 @@ fn context_factory(_: &mut Request) -> IronResult<()> {
struct Root;
graphql_object!(Root: () |&self| {
juniper::graphql_object!(Root: () |&self| {
field foo() -> String {
"Bar".to_owned()
}
@ -98,7 +98,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();