GraphQL error handling

Hello Webix Team,

Can you please clarify in the documentation how to actually handle errors with GraphQL? I still can’t understand how to access the errors field, after reading the current paragraph in the documentation and asking for clarification 8 months ago.

Sending the user to the GraphQL specification doesn’t help.

Also, I’ve modified your GraphQL and Data Processor sample to trigger a GraphQL error whenever an insert/update/delete is performed. The sample doesn’t catch any errors, possibly because the HTTP response code is still 200 OK, despite the presence of errors.

I gave more details in this thread.

Also, it looks like the GraphQL proxy simply doesn’t handle the presence of an errors key at all.

I’ve submitted a PR to properly handle GraphQL errors.