Skip to content

Commit

Permalink
Merge pull request #148 from khankuan/patch-2
Browse files Browse the repository at this point in the history
Fix graphiql refreshing operationName undefined
  • Loading branch information
syrusakbary authored Jun 29, 2017
2 parents 7263485 + 8eb881e commit 0588f89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions graphene_django/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ def get_graphql_params(request, data):
raise HttpError(HttpResponseBadRequest('Variables are invalid JSON.'))

operation_name = request.GET.get('operationName') or data.get('operationName')
if operation_name == "null":
operation_name = None

return query, variables, operation_name, id

Expand Down

0 comments on commit 0588f89

Please sign in to comment.