Can we allow custom graphiql templates? We're migrating to strawberry, but our team have a custom playground template which contains tabs and other site settings like schema polling, tracing and etc.
I was able to workaround it by creating a custom BaseView
and overriding the _render_graphiql
method, but it would be great to have a property for that. I just want to reduce the efforts should you ever update the render method.
Can I introduce a graphiql_template
attribute to the BaseView
?
class BaseView(View):
...
graphiql_template = "graphql/graphiql.html"
...
def _render_graphiql(self, request: HttpRequest, context=None):
...
template = Template(render_to_string(self.graphiql_template))
...
Thanks for the awesome library, by the way :)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too