graphiql 0.1.0

creates a simple html to open up a graphiql instance
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# graphiql

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

## Usage with axum

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

```