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 smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

Read Write Ration and lazy evaluation

What we learned migrating off Cron to Airflow

Understanding IoT device management as a subset of IoT application management solutions

SQL vs. NoSQL Database: When to Use, How to Choose

11 Best Books to learn Java in-depth — Must Read

11 Best Books to learn Java in-depth — Must Read

The little things, syntax.

100 Days of Code — More than a Coding Challenge

Data strategies to strengthen your Workday investment

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

More from Medium

Time-Travel Debugging as a Service

Changing Jobs Without Leaving Your Company

Caching database queries in TypeScript

Speed up your Jest tests with shards