Moving On

In this chapter, you learned how GraphQL draws a distinction between queries, which are used to retrieve information, and mutations used to change it. We worked through adding a root mutation type and a mutation field, discussed how to use input objects to model new records, and uncovered several strategies for returning error information if something goes wrong.

This chapter finishes up our work building the core pieces of a GraphQL API. Before we move on to some exciting near real-time features of GraphQL, here are some challenges you can tackle in the PlateSlate application to use your knowledge of the material in this chapter:

  1. We added a :decimal scalar type in this chapter and used it as the type for the :price field of our :menu_item ...

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.