We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcc20a9 commit 408b9bcCopy full SHA for 408b9bc
src/graphql_server/http/__init__.py
@@ -67,7 +67,9 @@ class GraphQLRequestData:
67
def to_template_context(self) -> dict[str, Any]:
68
return {
69
"query": tojson(self.query),
70
- "variables": tojson(self.variables),
+ "variables": tojson(
71
+ tojson(self.variables) if self.variables is not None else ""
72
+ ),
73
"operation_name": tojson(self.operation_name),
74
}
75
src/graphql_server/static/graphiql.html
@@ -194,7 +194,7 @@
194
plugins: [explorerPlugin],
195
inputValueDeprecation: true,
196
query: {{query}},
197
- variables: '{{variables}}',
+ variables: {{variables}},
198
headers: parameters.headers,
199
operationName: {{operation_name}},
200
defaultQuery: EXAMPLE_QUERY,
0 commit comments