Skip to content

Commit 994f77f

Browse files
committed
Fixed GraphiQL
1 parent 30301ef commit 994f77f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphql_server/render_graphiql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def get_template_vars(
244244
template_vars: Dict[str, Any] = {
245245
"result": tojson(data),
246246
"query": tojson(params.query),
247-
"variables": tojson(params.variables),
247+
"variables": tojson(json.dumps(params.variables)),
248248
"operation_name": tojson(params.operation_name),
249249
"html_title": options_with_defaults["html_title"],
250250
"graphiql_version": options_with_defaults["graphiql_version"],

0 commit comments

Comments
 (0)