Error Handling with Apollo

At Apollo, we’ve heard a lot of desire from GraphQL developers for more guidance on how to do error handling. Learn how to communicate errors to your client in an organized way, and open up new possibilities for tooling.

Backend
Frontend

This collection will help you handle GraphQL errors in a systematic way, making developing apps with Apollo clearer and more streamlined.

Kurt Kemple

Developer Advocate at Apollo

Blog post

Full Stack Error Handling with GraphQL and Apollo 🚀

Most GraphQL layers sit between the application frontend and a constellation of micro-services and data sources, which make them a focal point for error handling. Errors can range from bad user inputs to back-end bugs to rare network outages. Since it’s at the center of all the action, GraphQL has great potential to help us […]

Talk

200 OK! Error Handling in GraphQL

Sasha Solomon’s talk from GraphQL Summit Wordwide. Find out how not all “errors” are errors, how we can have a better understanding of our data, and how to model domain errors in our GraphQL schema.

Docs

Error Handling in Apollo Server

These official Apollo docs teach you how to make errors actionable on the client and server.

Docs

Handle and Inspect Errors with the Error Link

The error link allows you to catch network and GraphQL errors and handle them however you would like!

Guide

Video Walkthrough of Error Handling with Apollo Link

GraphQL & network errors can be a pain to deal with. Don’t worry, we’ve got you covered! In this episode of Mission Briefing, you’ll learn how to handle errors with ease using Apollo Link.

Docs

Handling GraphQL Errors in React

Any application, from simple to complex, can have its fair share of errors. It is important to handle these errors and when possible, report these errors back to your users for information.

Tutorial

From the community
Using the Error Link to Manage Authentication Errors in React

Learn how to handle errors in React Apollo with onError which can catch things like not authenticated users.