-
Notifications
You must be signed in to change notification settings - Fork 766
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove payload key from response and stick to original format. #123
Remove payload key from response and stick to original format. #123
Conversation
Hi @HorizonXP, thanks for the PR! The batching support was initially coded for supporting I thought @helfer @nodkz it seems the batching query strategy in Apollo Client[
{
"id": 1,
"errors": [
{ "location": 1, "message": "major error" },
],
},
{ "id": 2, "data": {} },
] react-relay-network-layer{
"status": 200,
"body": [
{
"id": 1,
"payload": {
"errors": [
{ "location": 1, "message": "major error" },
],
},
},
{ "id": 2, "payload": { "data": {} } },
],
} |
@syrusakbary It's actually even simpler for Apollo as it doesn't use an I also think the nodkz batching is a bit different from what you described. Status is present on every response: To harmonize the two formats, I would propose dropping the
What do you think? PS: @HorizonXP thanks for making the PR to prompt this discussion! |
@HorizonXP make sure you also change the tests, and not just the code. Currently the tests are failing because they still expect |
@syrusakbary @helfer i'll look tomorrow what can i do. I'd like idea of harmonization of two formats. |
I'll update the PR so that it passes the tests, but I can't test against |
Just published |
Thanks for the great work! @nodkz @HorizonXP Merging :) |
Fixes #122