Chapter 5Making a Change with Mutations
Itâs easy to focus on GraphQLâs data-fetching capabilities; the flexibility it gives clients when crafting queries is certainly its most striking feature, but itâs not a read-only data platform. GraphQL also supports mutations, which allow users of the API to modify server-side data.
If youâre familiar with REST APIs, you can think of GraphQL mutations as roughly analogous to POST, PUT, and DELETE operations. Unlike REST, however, the responses from GraphQL mutations can be tailored, just as with GraphQL query operations.
In this chapter, weâre going to explore how GraphQL mutations can be used by adding menu-item management features to our PlateSlate application. Youâll learn how to add a ...
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.