diff options
Diffstat (limited to 'src/graphql/routes.rs')
-rw-r--r-- | src/graphql/routes.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/graphql/routes.rs b/src/graphql/routes.rs index 2380760..e15267e 100644 --- a/src/graphql/routes.rs +++ b/src/graphql/routes.rs @@ -1,10 +1,11 @@ -use crate::graphql::query::*; -use async_graphql::{EmptyMutation, EmptySubscription, Schema}; +use crate::graphql::mutation::Mutation; +use crate::graphql::query::Query; +use async_graphql::{EmptySubscription, Schema}; use async_graphql_axum::{GraphQLRequest, GraphQLResponse}; use std::sync::Arc; pub async fn graphql_handler( - schema: Arc<Schema<Query, EmptyMutation, EmptySubscription>>, + schema: Arc<Schema<Query, Mutation, EmptySubscription>>, req: GraphQLRequest, ) -> GraphQLResponse { schema.execute(req.into_inner()).await.into() |