mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-29 13:03:44 +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
|
||||
|
||||
if self.batch:
|
||||
response = {
|
||||
'id': id,
|
||||
'payload': response,
|
||||
'status': status_code,
|
||||
}
|
||||
response['id'] = id
|
||||
response['status'] = status_code
|
||||
|
||||
result = self.json_encode(request, response, pretty=show_graphiql)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user