How to create a new entry, update an entry, and delete an entry in Craft CMS via GraphQL.
Mutations in GraphQL allow you to create or modify data on the server via queries. Practically speaking, this means we can create a new entry or upload an asset or delete a tag via a GraphQL query.
Mutations weren’t available in the first roll-out of GraphQL support in Craft CMS but as of Craft 3.5, we now we have the ability run mutation queries.
This video is a gentle introduction to mutations. We’ll work in the GraphiQL playground available via the Craft Control Panel.
In order to follow along with this video, you only need a Craft installation with a section and fields so we can run some mutation queries.
Fundamentals of GraphQL is made up of the following videos: