Chapter 7Resolution Middleware
Absinthe is built to be highly flexible. Even months prior to our first-class support for subscriptions, for example, people had put together their own implementations based on the tooling and support for extensions built into the framework. In this chapter, weâre going to look at one of the most important of these mechanisms: middleware.
Even within the small API weâve written over the last few chapters, weâve seen some common patterns emerge within some of our resolvers. As you look forward toward error handling, authorization, and other concerns a real API would have, youâll want to become familiar with some tools that Absinthe provides for encapsulating these ideas into easier-to-use patterns.
Weâre ...
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.