File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- title : Django Debug Plugin
2
+ title : Django Debug Middleware
3
3
description : How to debug Django queries and requests using Graphene
4
4
---
5
5
6
- # Django Debug Plugin
6
+ # Django Debug Middleware
7
7
8
8
You can debug your GraphQL queries in a similar way to [ django-debug-toolbar] ( https://django-debug-toolbar.readthedocs.org/ ) ,
9
9
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.
14
14
## Installation
15
15
16
16
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 ` .
18
18
* Add the ` debug ` field into the schema root ` Query ` with the value ` graphene.Field(DjangoDebug, name='__debug') ` .
19
19
20
20
@@ -28,8 +28,6 @@ class Query(graphene.ObjectType):
28
28
schema = graphene.Schema(query = Query, middlewares = [DjangoDebugMiddleware()])
29
29
```
30
30
31
- This plugin, will add another field in the ` Query ` named ` __debug ` .
32
-
33
31
34
32
## Querying
35
33
You can’t perform that action at this time.
0 commit comments