Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Where art thou, my error?

Where art thou, my error?

This is my talk at GraphQL Finland 2018 (https://graphql-finland.fi) that gives both an overview of patterns being used
to surface errors that occur during GraphQL query execution, as well as what our (artsy.net) approach is.

You can find all original materials in this repo https://github.com/alloy/graphql-finland.

Finally, you can find a blog post version here (http://artsy.github.io/blog/2018/10/19/where-art-thou-my-error/), where
you can also leave comments with your feedback on all of this 🙏

Eloy Durán

October 19, 2018
Tweet

Other Decks in Programming

Transcript

  1. !

  2. GraphQL Errors with metadata While convenient, the weakness of this

    approach is that the format of the valida6on error messages is not captured by your schema, making it bri;le to changes. Unless you maintain 6ght control of both server and client, you should keep the error responses as simple as possible. For muta6ons, it can be worthwhile defining these valida6on errors as first class ci6zens within your schema.