Open chris-rudmin opened 3 years ago
The field used to check for errors is errors
:
@lpinca I see that. According to all the Shopify docs I have seen. Mutation queries will have any error in the field userErrors
Some example doc references: https://shopify.dev/docs/admin-api/graphql/reference/customers/customeraddtaxexemptions https://shopify.dev/docs/admin-api/graphql/reference/customers/customercreate https://shopify.dev/docs/admin-api/graphql/reference/orders/ordereditsetquantity
Feel free to open a PR.
When doing a mutation
shopify.graphql(mutationQuery)
where the query is a mutation such as:Errors are returned in the userErrors field. However the request promise resolves successfully. I was expecting the error to be thrown as it is done for normal queries.