Skip to content
Developerhome

Mutation: Bulk update

  Less than to read

A bulk update mutation allows updating several properties in several records.

The following table displays an example and the result of a mutation to perform a bulk update. Some of the fields displayed are not mandatory, and others have been omitted.

mutation {
  xtremMasterData {
    item {
      bulkUpdate(
        data: {minimumSalesQuantity: 10}
        filter: "{salesUnit:{name:{_eq:'Each'}}}"
      )
    }
  }
}
{
  "data": {
    "xtremMasterData": {
      "customer": {
        "bulkUpdate": true
      }
    }
  },
  "extensions": {
    "diagnoses": []
  }
} 

This type of mutation is executed on a potentially vast number of records. Because of that, it can fail in timeout, as it is a unique transaction. In the event of failure, a rollback is performed.