Display variables as JSON in GraphiQL

Closes #36
This commit is contained in:
Beau Barker 2016-10-31 13:05:30 +11:00
parent d348ec89c5
commit 87422a0e40

View File

@ -131,7 +131,7 @@ class GraphQLView(View):
request,
graphiql_version=self.graphiql_version,
query=query or '',
variables=variables or '',
variables=json.dumps(variables) or '',
operation_name=operation_name or '',
result=result or ''
)