pub fn graphql_post<Exec>() -> impl Handler
    where
        Exec: GraphQLExecutor + Send + Sync + 'static,
        Exec::Future: Send + 'static,
    {
        wrap_async(|input| {
            let request = input.body_mut().read_all().convert_to::<GraphQLRequest>();
            request.into_future().and_then(|request| {
                input::with_get_current(|input| {
                    let cx = input
                        .get::<Exec>()
                        .expect("Failed to get the reference to GraphQL executor.");
                    cx.execute(request)
                })
            })
        })
    }
/// Creates a handler processing a GraphQL request passed as an HTTP POST request.
///
/// The GraphQL request is represented as a JSON payload.
/// See [the documentation of GraphQL][post-request] for details.
///
/// [post-request]: https://graphql.org/learn/serving-over-http/#post-request
Creates a handler processing a GraphQL request passed as an HTTP POST request.
The GraphQL request is represented as a JSON payload.
See [the documentation of GraphQL][post-request] for details.


Creates a handler processing a GraphQL request passed as an HTTP POST request . The GraphQL request is represented as a JSON payload . See [ the documentation of GraphQL ] [ post - request ] for details .
pub fn graphql_post<Exec>() -> impl Handler
    where
        Exec: GraphQLExecutor + Send + Sync + 'static,
        Exec::Future: Send + 'static,
    {
        wrap_async(|input| {
            let request = input.body_mut().read_all().convert_to::<GraphQLRequest>();
            request.into_future().and_then(|request| {
                input::with_get_current(|input| {
                    let cx = input
                        .get::<Exec>()
                        .expect("Failed to get the reference to GraphQL executor.");
                    cx.execute(request)
                })
            })
        })
    }
pub fn graphql_post < Exec > ( ) -> impl Handler where Exec : GraphQLExecutor + Send + Sync + ' static , Exec :: Future : Send + ' static , { wrap_async ( | input | { let request = input . body_mut ( ) . read_all ( ) . convert_to :: < GraphQLRequest > ( ) ; request . into_future ( ) . and_then ( | request | { input :: with_get_current ( | input | { let cx = input . get :: < Exec > ( ) . expect ( " " ) ; cx . execute ( request ) } ) } ) } ) }
Creates a handler processing a GraphQL request passed as an HTTP POST request.
Creates a handler processing a GraphQL request passed as an HTTP POST request .