Skip to content

Commit 9eb339e

Browse files
committed
Remove payload key from response and stick to original format.
1 parent fd91f78 commit 9eb339e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

graphene_django/views.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,8 @@ def get_response(self, request, data, show_graphiql=False):
160160
response['data'] = execution_result.data
161161

162162
if self.batch:
163-
response = {
164-
'id': id,
165-
'payload': response,
166-
'status': status_code,
167-
}
163+
response['id'] = id
164+
response['status'] = status_code
168165

169166
result = self.json_encode(request, response, pretty=show_graphiql)
170167
else:

0 commit comments

Comments
 (0)