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 2f0bd7c commit e48598fCopy full SHA for e48598f
graphene/contrib/django/views.py
@@ -60,6 +60,8 @@ def post(self, request, *args, **kwargs):
60
query = received_json_data.get('query')
61
except ValueError:
62
return self.response_errors(ValueError("Malformed json body in the post data"))
63
+ elif content_type == 'application/graphql':
64
+ query = request.body.decode()
65
else:
66
query = request.POST.get('query') or request.GET.get('query')
67
return self.execute_query(request, query or '')
0 commit comments