update juniper to 0.17 but fr this time
All checks were successful
Build and Test / account (push) Successful in 7m27s
All checks were successful
Build and Test / account (push) Successful in 7m27s
This commit is contained in:
parent
67b1e83ddd
commit
751168154f
5 changed files with 29 additions and 311 deletions
|
|
@ -30,7 +30,6 @@ impl<'r> FromRequest<'r> for Context {
|
|||
}
|
||||
|
||||
pub type Schema = RootNode<
|
||||
'static,
|
||||
Query,
|
||||
EmptyMutation<Context>,
|
||||
EmptySubscription<Context>
|
||||
|
|
@ -220,7 +219,7 @@ pub async fn get_graphql(
|
|||
schema: &State<Schema>,
|
||||
context: Context
|
||||
) -> juniper_rocket::GraphQLResponse {
|
||||
request.execute(schema, &context).await
|
||||
request.execute(schema.inner(), &context).await
|
||||
}
|
||||
|
||||
#[rocket::post("/graphql", data = "<request>")]
|
||||
|
|
@ -229,5 +228,5 @@ pub async fn post_graphql(
|
|||
schema: &State<Schema>,
|
||||
context: Context
|
||||
) -> juniper_rocket::GraphQLResponse {
|
||||
request.execute(schema, &context).await
|
||||
request.execute(schema.inner(), &context).await
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue