Minnu Merin Alex

Minnu Merin Alex

  • NA
  • 191
  • 25.4k

Error handling using graphql

Nov 20 2018 11:06 PM
How will i display response code.i am using this code .
throw new GraphQL.ExecutionError("INVALID_CAQHID")
{
Code = "213"
};
and i am getting the output as below.i am not able to display the status code.please help me to fix the same.
 
{
"data": {
"getDetails": null
},
"errors": [
{
"message": "INVALID_ID"
}
]
}

Answers (1)