Skip to content

v3.12.9

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 03 Feb 17:57
1641eeb

Patch Changes

  • #12321 daa4f33 Thanks @jerelmiller! - Fix type of extensions in protocolErrors for ApolloError and the onError link. According to the multipart HTTP subscription protocol, fatal tranport errors follow the GraphQL error format which require extensions to be a map as its value instead of an array.

  • #12318 b17968b Thanks @jerelmiller! - Allow RetryLink to retry an operation when fatal transport-level errors are emitted from multipart subscriptions.

    const retryLink = new RetryLink({
      attempts: (count, operation, error) => {
        if (error instanceof ApolloError) {
          // errors available on the `protocolErrors` field in `ApolloError`
          console.log(error.protocolErrors);
        }
    
        return true;
      },
    });