playground_source

Function playground_source 

Source
pub fn playground_source(config: GraphQLPlaygroundConfig<'_>) -> String
Available on crate feature playground only.
Expand description

Generate the page for GraphQL Playground

ยงExample

use async_graphql::http::*;

playground_source(GraphQLPlaygroundConfig::new("http://localhost:8000"));