Using mutation queries
In the previous section, you learned how to expose entities for Datahub configurations and how to perform queries to retrieve object data. In this section, you will learn how to expose entities for mutations and how to perform queries to create, update, and delete objects.
As we mentioned in the Activating the Pimcore Datahub bundle section, in the Schema Definition panel of Datahub configurations, we must select which classes should be available for mutations and add them to the Mutation Schema section.
As we did for classes in the Query Schema section, we can define which fields can be exposed for mutation queries by clicking on the Settings icon for each added class. Besides, for each class, we can decide whether we want to make it available for creation, update, or deletion.
Throughout this section, we will learn how to perform mutation queries for creating, updating, and deleting objects.
Creating Objects
In this section, you will learn how...