Hi,
How to handle errors in GraphQL ?
Thanks in advance.
Hi,
How to handle errors in GraphQL ?
Thanks in advance.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jay Krishna ReddyPosted Jul 3, 2021, 6:48 AM
A successful GraphQL query is supposed to return a JSON object with a root field called "data". If the request fails or partially fails (e.g. because the user requesting the data doesn’t have the right access permissions), a second root field called "errors" is added to the response:
Salman BegPosted Jul 2, 2021, 7:18 AM