use crate::graphql::query::*; use async_graphql::{EmptyMutation, EmptySubscription, Schema}; use async_graphql_axum::{GraphQLRequest, GraphQLResponse}; use std::sync::Arc; pub async fn graphql_handler( schema: Arc>, req: GraphQLRequest, ) -> GraphQLResponse { schema.execute(req.into_inner()).await.into() }