MrHertal / react-admin-amplify

AWS Amplify data provider for react-admin.
MIT License
159 stars 42 forks source link

How to custom error message from Server return? #56

Closed phanviet closed 3 years ago

phanviet commented 3 years ago

I have a delete function, that will validate something before delete. So when admin click "Delete", I'd like to display the message inside errors object of GraphQL to let admin know what's wrong (instead of default message "Server communication error"), So how I do that? thx.

phanviet commented 3 years ago

I already did it by custom Toolbar of SimpleForm. Thanks and Closed issues.