pub fn graphiql_source(
graphql_endpoint_url: &str,
subscriptions_endpoint_url: Option<&str>,
) -> String
Expand description
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("/subscriptions"));