mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-26 03:24:07 +03:00
Remove payload key from response and stick to original format.
This commit is contained in:
parent
fd91f78366
commit
9eb339e2e3
|
@ -160,11 +160,8 @@ class GraphQLView(View):
|
||||||
response['data'] = execution_result.data
|
response['data'] = execution_result.data
|
||||||
|
|
||||||
if self.batch:
|
if self.batch:
|
||||||
response = {
|
response['id'] = id
|
||||||
'id': id,
|
response['status'] = status_code
|
||||||
'payload': response,
|
|
||||||
'status': status_code,
|
|
||||||
}
|
|
||||||
|
|
||||||
result = self.json_encode(request, response, pretty=show_graphiql)
|
result = self.json_encode(request, response, pretty=show_graphiql)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user