I\'m using GraphQL and mongoose on the server.
When a validation error occurs the GraphQL mutation sends a response with status code 200. On the client side the resp
Using graphql tag notation, yo have access to errors:
{(updateTodo, { loading, error }) => ( {type} { e.preventDefault(); updateTodo({ variables: { id, type: input.value } }); input.value = ""; }} > { input = node; }} /> Update Todo {loading && Loading...} {error && Error :( Please try again} )}
{type}
Loading...
Error :( Please try again
https://www.apollographql.com/docs/react/essentials/mutations.html