Skip to main content
Version: Canary 🚧

Error Policy


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 errorPolicy argument.


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.

Policy exceptions

Some mutations can have specific errors, which can change the error policy behavior. For example orderBulkCreate.

Was this page helpful?