Skip to content

Commit 2ea6ab4

Browse files
committed
Improved django debug page
1 parent 3a1093a commit 2ea6ab4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/pages/docs/django/debug.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: Django Debug Plugin
2+
title: Django Debug Middleware
33
description: How to debug Django queries and requests using Graphene
44
---
55

6-
# Django Debug Plugin
6+
# Django Debug Middleware
77

88
You can debug your GraphQL queries in a similar way to [django-debug-toolbar](https://django-debug-toolbar.readthedocs.org/),
99
but outputing in the results in GraphQL response as fields, instead of the graphical HTML interface.
@@ -14,7 +14,7 @@ For that, you will need to add the plugin in your graphene schema.
1414
## Installation
1515

1616
For use the Django Debug plugin in Graphene:
17-
* Import `DjangoDebugMiddleware` and add it to the `middleware` argument when you initiate the `Schema`.
17+
* Import `DjangoDebugMiddleware` and add it to the `middlewares` argument when you initiate the `Schema`.
1818
* Add the `debug` field into the schema root `Query` with the value `graphene.Field(DjangoDebug, name='__debug')`.
1919

2020

@@ -28,8 +28,6 @@ class Query(graphene.ObjectType):
2828
schema = graphene.Schema(query=Query, middlewares=[DjangoDebugMiddleware()])
2929
```
3030

31-
This plugin, will add another field in the `Query` named `__debug`.
32-
3331

3432
## Querying
3533

0 commit comments

Comments
 (0)