graphiql 0.1.0

creates a simple html to open up a graphiql instance
Documentation
  • Coverage
  • 0%
    0 out of 5 items documented0 out of 2 items with examples
  • Size
  • Source code size: 3.85 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 281.83 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • emcellsoft/graphiql
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • emcell

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,
        }),
    )
}