Open renatonmendes opened 7 years ago
same situation
Looks to be related to this https://github.com/facebook/relay/issues/1913#issuecomment-330759634
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I came in a situation that another user has inserted invalid data on my database. When queried, I got the following payload from my GraphQL server:
On
QueryRenderer
nothing is set onerror
(that comesnull
). As far as I know this is becausedata
is set to non null (has data), and in that caseQueryRenderer
does not return data. (A wirld thing or a bug for me, check https://github.com/facebook/relay/issues/1913How can I catch the given error so that my client redirect to a system error page with this detailed information ?