Skip to content

Commit 0588f89

Browse files
authored
Merge pull request #148 from khankuan/patch-2
Fix graphiql refreshing operationName undefined
2 parents 7263485 + 8eb881e commit 0588f89

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: graphene_django/views.py

+2
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ def get_graphql_params(request, data):
287287
raise HttpError(HttpResponseBadRequest('Variables are invalid JSON.'))
288288

289289
operation_name = request.GET.get('operationName') or data.get('operationName')
290+
if operation_name == "null":
291+
operation_name = None
290292

291293
return query, variables, operation_name, id
292294

0 commit comments

Comments
 (0)