diff --git a/flask_graphql/graphqlview.py b/flask_graphql/graphqlview.py index bcb4a11..ceca3eb 100644 --- a/flask_graphql/graphqlview.py +++ b/flask_graphql/graphqlview.py @@ -19,6 +19,7 @@ class GraphQLView(View): graphiql = False graphiql_version = None graphiql_template = None + graphiql_html_title = None middleware = None batch = False @@ -51,6 +52,7 @@ def render_graphiql(self, params, result): result=result, graphiql_version=self.graphiql_version, graphiql_template=self.graphiql_template, + graphiql_html_title=self.graphiql_html_title, ) format_error = staticmethod(default_format_error) diff --git a/flask_graphql/render_graphiql.py b/flask_graphql/render_graphiql.py index 1ecfe8a..6541f82 100644 --- a/flask_graphql/render_graphiql.py +++ b/flask_graphql/render_graphiql.py @@ -12,6 +12,7 @@ + {{graphiql_html_title|default("GraphiQL", true)}}