[−][src]Function juniper::http::graphiql::graphiql_source
pub fn graphiql_source(
graphql_endpoint_url: &str,
subscriptions_endpoint_url: Option<&str>
) -> String
Generate the HTML source to show a GraphiQL interface
The subscriptions endpoint URL can optionally be provided. For example:
let graphiql = graphiql_source("/graphql", Some("ws://localhost:8080/subscriptions"));