fn graphql(
    st: web::Data<Arc<Schema>>,
    data: web::Json<GraphQLRequest>,
) -> impl Future<Item = HttpResponse, Error = Error> {
    web::block(move || {
        let res = data.execute(&st, &());
        Ok::<_, serde_json::error::Error>(serde_json::to_string(&res)?)
    })
    .map_err(Error::from)
    .and_then(|user| {
        Ok(HttpResponse::Ok()
            .content_type("application/json")
            .body(user))
    })
}
// function for the graphql interface  [not working]
function for the graphql interface  [not working]
function for the graphql interface [ not working ]
fn graphql(
    st: web::Data<Arc<Schema>>,
    data: web::Json<GraphQLRequest>,
) -> impl Future<Item = HttpResponse, Error = Error> {
    web::block(move || {
        let res = data.execute(&st, &());
        Ok::<_, serde_json::error::Error>(serde_json::to_string(&res)?)
    })
    .map_err(Error::from)
    .and_then(|user| {
        Ok(HttpResponse::Ok()
            .content_type("application/json")
            .body(user))
    })
}
fn graphql ( st : web :: Data < Arc < Schema > > , data : web :: Json < GraphQLRequest > , ) -> impl Future < Item = HttpResponse , Error = Error > { web :: block ( move | | { let res = data . execute ( & st , & ( ) ) ; Ok :: < _ , serde_json :: error :: Error > ( serde_json :: to_string ( & res ) ? ) } ) . map_err ( Error :: from ) . and_then ( | user | { Ok ( HttpResponse :: Ok ( ) . content_type ( " " ) . body ( user ) ) } ) }
function for the graphql interface  [not working]
function for the graphql interface [ not working ]
st
web::Data<Arc<Schema>>
data
web::Json<GraphQLRequest>
st
web::Data<Arc<Schema>>
data
web::Json<GraphQLRequest>