Chapter 4Adding Flexibility

Capturing and distilling an entire domain model into a GraphQL schema can be quite the undertaking, and it’s important to keep your schema as maintainable and flexible as possible as it grows to describe the needs of your API.

Like any software developer, you likely bridle at the idea of typing countless lines of repetitive boilerplate into an editor, or dealing with restrictions that force you to organize your code in a way that doesn’t fit your personal tastes or team conventions. Never fear! We’ll start this chapter exploring tools that Absinthe provides that can make your type definitions more reusable, and we’ll look at techniques you can employ to more effectively organize your schema.

After you have ...

Get Craft GraphQL APIs in Elixir with Absinthe now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.