graphiql
I use this crate to deliver a graphiql instance with my graphql apis.
Usage with axum
async
I use this crate to deliver a graphiql instance with my graphql apis.
async fn graphiql() -> impl IntoResponse {
(
[(header::CONTENT_TYPE, "text/html")],
graphiql::graphiql_body(GraphiqlOptions {
endpoint: "/graphql".to_owned(),
subscription_endpoint: None,
}),
)
}