The Startup
Published in

The Startup

All About GraphQL Abstract Types

And Why Union Types are Far from a Silver Bullet

This post is a snippet from Production Ready GraphQL. It is part of an update I’m working on for the schema design chapter in version 1.3. I decided to release it publicly as well because this side of abstract types is not talked about very much, and the subtle differences between interfaces and unions are not always easy to grasp. Hope you enjoy!

GraphQL Schema designers have in their toolbox two different abstract types they can choose from: Interfaces and Unions

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Marc-André Giroux

Marc-André Giroux

#GraphQL Enthusiast, Speaker, Senior Software Developer @ Netflix 📖 Book is now available https://book.productionreadygraphql.com/