Chapter 2Building a Schema
GraphQL APIs are shaped by their schemas. In fact, itâs fair to say that because GraphQL schemas are more than just structural metadata and actually define behavior, theyâre the API implementation itself.
The schema is used by GraphQL servers as the canonical source of information when deciding how to respond to a request. Theyâre the reason that GraphQL documents can be as flexible as they are, while still giving backend developers the mechanisms that they need to ensure the API is safe and reliable.
In Elixir, you can use the Absinthe package to build GraphQL APIs. In this chapter, weâll help you get acquainted with how Absintheâs schemas are defined by building the foundation of our example application, ...
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.