File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
Django==1.9.6
2
- graphene[django]==0.9 .0
2
+ graphene[django]==0.10 .0
3
3
django-graphiql==0.4.4
4
4
django-filter==0.12.0
5
5
django-environ==0.4.0
Original file line number Diff line number Diff line change 6
6
from graphene import resolve_only_args , relay
7
7
from graphene .contrib .django import DjangoNode , DjangoConnection
8
8
from graphene .contrib .django .filter import DjangoFilterConnectionField
9
- from graphene .contrib .django .debug import DjangoDebugPlugin
9
+ from graphene .contrib .django .debug import DjangoDebugMiddleware , DjangoDebug
10
10
from graphql_relay .node .node import from_global_id
11
11
12
12
import models
13
13
14
14
15
- schema = graphene .Schema (name = 'Starwars Relay Schema' , plugins = [ DjangoDebugPlugin ()])
15
+ schema = graphene .Schema (name = 'Starwars Relay Schema' , middlewares = [ DjangoDebugMiddleware ()])
16
16
17
17
18
18
class Connection (DjangoConnection ):
@@ -162,6 +162,8 @@ class Query(graphene.ObjectType):
162
162
node = relay .NodeField ()
163
163
viewer = graphene .Field ('self' )
164
164
165
+ debug = graphene .Field (DjangoDebug , name = '__debug' )
166
+
165
167
def resolve_viewer (self , * args , ** kwargs ):
166
168
return self
167
169
You can’t perform that action at this time.
0 commit comments