#graphql #instance #html #open #up

graphiql

creates a simple html to open up a graphiql instance

1 unstable release

Uses new Rust 2024

0.1.0 Jun 26, 2025

#1715 in HTTP server

Apache-2.0

4KB
76 lines

graphiql

I use this crate to deliver a graphiql instance with my graphql apis.

Usage with axum

async fn graphiql() -> impl IntoResponse {
    (
        [(header::CONTENT_TYPE, "text/html")],
        graphiql::graphiql_body(GraphiqlOptions {
            endpoint: "/graphql".to_owned(),
            subscription_endpoint: None,
        }),
    )
}

No runtime deps