What is the meaning of checkoutUserErrors in Storefront API

I can’t really figure out what is the meaning of checkoutUserErrors in the checkout mutations in the Storefront API.
The field exist on every mutation, but what are the possible outcomes? Is it a message that I should display for the user?
Thanks

/C-J

I’m pretty sure those are mutation errors.

checkoutUserErrors ([CheckoutUserError!]!)	
List of errors that occurred executing the mutation.

Do you have any examples of checkoutUserErrors that you’ve gotten back?

Ya dude,

here’s the error field for customerAddressCreate:

customerUserErrors ([CustomerUserError!]!)	
List of errors that occurred executing the mutation.

BulkOperationRunQuery:

userErrors ([UserError!]!) List of errors that occurred executing the mutation

WebhookSubscriptionDelete:

userErrors ([UserError!]!)	
List of errors that occurred executing the mutation.

Yeah, these are just errors for you, the coder. They’re to help you decide the next best course of action in case of an error.
It’s just named weird - like everything in the Shopify API’s and documentation. :slight_smile:

Interesting!, Thank you for the help :slight_smile:

If these are messages for the coder, one would expect a definite list of possible answers and error codes so you can gracefully react on them, right?

Either that, or for logging and debugging purposes, or for both :stuck_out_tongue:

I do believe several error messages have an attributed error number as well.