Tomek's blog

Error handling with Apollo Client

February 08, 2020

How to handle errors in a React application with Apollo Client in Typescript - GraphQL and non-GraphQL errors, in imperative and declarative way, globally and on the component level. Also how to achieve type safety of errors by sharing error types between the server and client sides.

Error handling with Apollo Server

February 01, 2020

How to handle errors with Apollo Server using Typescript, translating system-wide, service-specific and unexpected errors into Apollo's errors. How to transition from REST-based to GraphQL-based API without reimplementation of the current system below the controllers layer.