Remove payload key from response and stick to original format.

This commit is contained in:
Xitij Ritesh Patel 2017-03-02 01:47:28 -05:00
parent fd91f78366
commit 9eb339e2e3

View File

@ -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: