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…