June 2025
Intermediate to advanced
837 pages
24h 50m
English
In the following sections, you’ll learn how to add write operations to your interface. The core component of this type of query is the mutation type, which, like the query type you’ve used so far for read accesses, is a special type in GraphQL. You may define both types only once in your schema. When implementing the resolver functions, you can draw on the already existing model function.
To create new data records, you need to make two enhancements to your schema. You need the mutation type and a createMovie field below it. You can model this type similarly to querying a single data record by defining a parameter list that includes the data record you want to ...
Read now
Unlock full access