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.38 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • 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,
        }),
    )
}