In this chapter, we’ve looked at a wide range of topics that help make building and using a GraphQL system more flexible and humane.
You’ve learned how to break up your schema into manageable pieces using Absinthe’s import_types and import_fields macros. We’ve dug deep into GraphQL unions and interfaces, and you’ve discovered how abstract types can make your API more approachable and usable. Your knowledge of GraphQL document building has expanded as well, now that you’ve seen fragments and understood how users can define, apply, and reuse fragments, enabling new approaches to GraphQL document authoring.
Before we head on to the next chapter, here are a few thought exercises based on the material in this chapter:
Next up, we tackle a very important topic: mutations! It’s been fun building a read-only API, but it’s probably time to let our users make changes to our data. We think you’ll be pleased with the flexibility you’ll have at your fingertips, especially if you have experience building REST APIs.
18.116.118.229