Handling Errors
This article explains how to handle different types of errors in GraphQL API
Validation Errors
mutation($input: UpdateAddressDetailsInput!) {
updateAddressDetails(input: $input){
subscription {
id
}
errors {
attribute
message
path
}
}
}{
"input": {
"name": "John Doe",
"email": "johndoe",
"address": "X street",
"city": "test",
"country": "XXXXXX",
"termsAccepted": true
}
}Not Found Errors
Unauthorized Errors
Other Errors
Last updated
Was this helpful?