Return Errors

Learn an alternate way to return errors in GraphQL.

We'll cover the following

Errors as data

To support introspection and better integration with clients, we model our errors as normal data and fully define our errors’ structure as normal types. If you recall, the mutation field we created earlier returned a :menu_item:

Get hands-on with 1200+ tech skills courses.