mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-01-27 17:54:11 +03:00
Merge pull request #148 from khankuan/patch-2
Fix graphiql refreshing operationName undefined
This commit is contained in:
commit
0588f89b89
|
@ -287,6 +287,8 @@ class GraphQLView(View):
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user