Skip to content
Compare
Choose a tag to compare
@shopify-github-actions-access shopify-github-actions-access released this 23 Jan 19:19
· 88 commits to main since this release
efb9a35

Minor Changes

  • 89d803e: # Adds signal as request option

    This adds the signal option to the request method of the GraphQL client, for the shopify-api and shopify-app-remix packages to pass in an AbortSignal to abort requests, and set a timeout.

    If a request is aborted, an HttpRequestError will be thrown.

    This will allow you to set your own custom timeout, and abort requests.

    // Abort the request after 3 seconds
    await admin.graphql('{ shop { name } }', {
      signal: AbortSignal.timeout(3000),
    });
    // Abort the request after 3 seconds, and retry the request up to 2 times
    await admin.graphql('{ shop { name } }', {
      signal: AbortSignal.timeout(3000),
      tries: 2,
    });

Patch Changes