Function juniper_warp::graphiql_handler[][src]

pub fn graphiql_handler(
    graphql_endpoint_url: &'static str
) -> BoxedFilter<(Response<Vec<u8>>,)>

Create a filter that replies with an HTML page containing GraphiQL. This does not handle routing, so you can mount it on any endpoint.

For example:

let graphiql_route = warp::path("graphiql").and(graphiql_handler("/graphql"));