pub fn graphql_get<Exec>() -> impl Handler
    where
        Exec: GraphQLExecutor + Send + Sync + 'static,
        Exec::Future: Send + 'static,
    {
        wrap_async(|input| {
            let request = input
                .uri()
                .query()
                .ok_or_else(|| Error::bad_request(format_err!("empty query")))
                .and_then(GraphQLRequest::from_query);
            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 GET request.
///
/// The GraphQL query is represented as HTTP query string.
/// See [the documentation of GraphQL][get-request] for details.
///
/// [get-request]: https://graphql.org/learn/serving-over-http/#get-request
Creates a handler processing a GraphQL request passed as an HTTP GET request.
The GraphQL query is represented as HTTP query string.
See [the documentation of GraphQL][get-request] for details.


Creates a handler processing a GraphQL request passed as an HTTP GET request . The GraphQL query is represented as HTTP query string . See [ the documentation of GraphQL ] [ get - request ] for details .
pub fn graphql_get<Exec>() -> impl Handler
    where
        Exec: GraphQLExecutor + Send + Sync + 'static,
        Exec::Future: Send + 'static,
    {
        wrap_async(|input| {
            let request = input
                .uri()
                .query()
                .ok_or_else(|| Error::bad_request(format_err!("empty query")))
                .and_then(GraphQLRequest::from_query);
            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_get < Exec > ( ) -> impl Handler where Exec : GraphQLExecutor + Send + Sync + ' static , Exec :: Future : Send + ' static , { wrap_async ( | input | { let request = input . uri ( ) . query ( ) . ok_or_else ( | | Error :: bad_request ( format_err ! ( " " ) ) ) . and_then ( GraphQLRequest :: from_query ) ; 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 GET request.
Creates a handler processing a GraphQL request passed as an HTTP GET request .