Function graphiql
Source pub fn graphiql() -> Html<String>
Expand description
Renders GraphiQL, the in-browser query editor, pointed at /graphql.
routes serves it on GET /graphql; use it directly to mount the
editor elsewhere or behind a check. The page loads GraphiQL’s scripts
from a CDN.
§Examples
let page = ocre::graphql::graphiql();
assert!(page.0.contains("/graphql"));