Developer changelog

Subscribe to the changelog to stay up to date on recent changes to Shopify’s APIs and other developer products, as well as preview upcoming features and beta releases.

Get updates by RSS

Improved GraphQL errors

API

Errors in GraphQL responses now contain extra metadata under the extensions key. The error format follows the GraphQL specification.

The most notable metadata is the code property which returns the error code. This feature allows you to more easily match on the types of errors without having to match on the full error message.

For example:

{
  "errors": [
    {
      "message": "Internal error. Looks like something went wrong on our end.",
      "extensions": {
        "code": "INTERNAL_SERVER_ERROR",
        "requestId": "d2f47302-8559-4961-9a5b-3de60172aa29"
      }
    }
  ]
}