Skip to content

Commit 87422a0

Browse files
committed
Display variables as JSON in GraphiQL
Closes #36
1 parent d348ec8 commit 87422a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_django/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def dispatch(self, request, *args, **kwargs):
131131
request,
132132
graphiql_version=self.graphiql_version,
133133
query=query or '',
134-
variables=variables or '',
134+
variables=json.dumps(variables) or '',
135135
operation_name=operation_name or '',
136136
result=result or ''
137137
)

0 commit comments

Comments
 (0)