Search⌘ K

Abstract Types

Explore how to use abstract types in GraphQL with Absinthe to simplify schema design and enhance flexibility in API queries. This lesson helps you understand implementing a unified search function that retrieves data across multiple concrete types, improving schema readability and user query adaptability.

We'll cover the following...

Understanding abstract types

To support an easy-to-use, flexible API for users, we need to go beyond concrete types of modeling and learn to use abstract types as well. Let’s look at a quick example. A standard feature for a user interface is a search function. How would we ...