-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
ASP.NET Core 9 Web API Cookbook
By :
In this recipe, we will learn how to modify data using GraphQL. GraphQL mutations are analogous to POST, PUT, and PATCH methods in REST. GraphQL mutations allow us to perform data modifications and at the same time return the modified data. In GraphQL, mutations are operations that cause side effects on the server and return the modified data, allowing clients to specify exactly what data they need in the response.
We will also use type extensions to organize our mutations. In GraphQL schemas, there’s a single root mutation type. We can define multiple mutation fields within this type. In this recipe, we’ll use type extensions to organize our mutations into separate classes for better code maintainability.