Django Debug Toolbar for GraphiQL IDE and Strawberry GraphQL server.
- Python ≥ 3.7
- Django ≥ 2.2
- Strawberry ≥ 0.15.1
Install the last stable version from PyPI.
pip install django-graphiql-strawberry-debug-toolbar
See the documentation for further guidance on setting Django Debug Toolbar.
Add graphiql_strawberry_debug_toolbar
to your INSTALLED_APPS settings:
INSTALLED_APPS = [
'debug_toolbar',
'graphiql_strawberry_debug_toolbar',
]
Replace the Django Debug Toolbar middleware with the GraphiQL Debug Toolbar one.
MIDDLEWARE = [
# 'debug_toolbar.middleware.DebugToolbarMiddleware',
'graphiql_strawberry_debug_toolbar.middleware.DebugToolbarMiddleware',
]
Credits to @jazzband / django-debug-toolbar and @mongkok, the author of the orignal tool for graphene.