The Mutation Type

Root Mutation type defines operations on company and system tables, enabling create, update, delete, and asynchronous queries.

The Mutation type is the root of all types that define table objects used in these operations, in the same way the Query type was the root for all types used in reading operations. In fact, Mutation and Query are very similar, as Mutation contains the following fields:

Field Description
useCompany Provides access to operations on the company tables.
useCustomer Provides access to operations on the system tables.
asyncQuery A field for executing another GraphQL query asynchronously. See Async queries.

The mutation type

The type of the useCompany field is Mutation_UseCompany. This type contains a field for each of the create, update, and delete operation for every company table.

Similarly, the type of the useCustomer field is Mutation_UseCustomer. This type contains a field for each of the create, update, and delete operation for every system table.

You can see the two types, Mutation_UseCustomer and Mutation_UseCompany, side-by-side in the following table:

System table Company table
System table Company table
Last modified September 24, 2024