Skip to main content

Bulk query operation userErrors now includes code field

As of version 2025-01, the userErrors field that is returned by the Admin API bulkOperationRunMutation will include an optional code field. The GraphQL type for the userErrors field will change from a UserErrors type to a BulkOperationUserError type, however the userErrors field name will remain unchanged.

mutation bulkOperationRunMutation($clientIdentifier: String, $mutation: String!, $stagedUploadPath: String!) {
  bulkOperationRunMutation(clientIdentifier: $clientIdentifier, mutation: $mutation, stagedUploadPath: $stagedUploadPath) {
    bulkOperation {
      # BulkOperation fields
    }
    userErrors {
      field
      message
      code
    }
  }
}
Was this section helpful?