Component to display GraphQL errors in a consistent format
Features:
Error Types Handled:
Component properties
Props for the ErrorDisplay component
ErrorDisplayProps
The Apollo error object to display
The rendered error display
<ErrorDisplay error={new ApolloError({ errorMessage: 'Could not resolve to a User' })}/> Copy
<ErrorDisplay error={new ApolloError({ errorMessage: 'Could not resolve to a User' })}/>
Component to display GraphQL errors in a consistent format
Features:
Error Types Handled: