During this chapter, you’ve learned an important new skill: how to build and use middleware that can modify the way fields are resolved during document execution. You know how to configure middleware on an individual basis, using the middleware/1,2 macros, and at the schema level, using middleware/3. Armed with this knowledge and an understanding of the MapGet middleware that’s used as Absinthe’s default resolution logic, you’re ready to build much more interesting patterns in your Absinthe schemas.
In the next chapter, we’re going to look at a critical use of middleware: securing your application behind authentication and authorization checks.
Before we move on, however, give this challenge a shot:
Once you’re feeling comfortable with the mechanics of building and applying middleware, let’s move on to how to use that knowledge to secure our API.
3.15.137.59