This feature was introduced in Saleor 3.11.
This feature is in the Feature Preview stage, which means that it is available for experimentation and feedback. However, it is still undergoing development and is subject to modifications.
Error policies were added to Saleor to allow users to choose how bulk mutations should behave if an error occurs. All new bulk mutations support
There are three options, how the mutation can handle errors:
This is default error policy. If a single error occurs, in at least one of the objects, the whole mutation fails and no data is saved.
The mutation saves only those objects, which do not produce any error.
If an error occurs for some object, Saleor will try to save it partially and skip the invalid part, if it is possible.
Some mutations can have specific errors, which can change the error policy behavior. For example