Data is getting set null when errors come from stitched remote schemas #4056
Unanswered
guifeliper
asked this question in
General
Replies: 2 comments 4 replies
-
Can you share a full reproduction? It looks like your remote errors are from different items in the list and don’t have full paths. Maybe that’s part of it. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Could it be related to this issue with a reproduction test? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Setup:
We have the following code for stitching the remote schemas; they are perfectly working.
https://www.graphql-tools.com/docs/remote-schemas
Scenario 1:
The query has error and data, the data on the client-side is returned as null, and the error has its message aggregated. However, a simple console.log on remote executor shows us that we have data and more than one error coming from the underlying subschema. Here is the current response on the client-side:
The following response shows us what we receive from the remote executor.
Scenario 2:
The query has errors and no data. The response on the client-side receives a 500 network error. The following response shows us what we receive from the remote executor.
Expectations
The data and error should be preserved as it is and should be passed to the client unmodified.
Beta Was this translation helpful? Give feedback.
All reactions