Apollo Link Retry is an Apollo Link for retrying GraphQL operations on network/server errors, not GraphQL errors. Version 2.2.16 is stable and ships TypeScript types. It uses exponential backoff with jitter by default to avoid thundering herd. Compared to manual retry logic, it integrates seamlessly into Apollo Client's link chain. Release cadence is low (last release 2019). Deprecated in favor of @apollo/client/link/retry.
npm install apollo-link-retryNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Setup RetryLink in an Apollo Client chain with exponential backoff and jitter.
Replace 'apollo-link-retry' with import { RetryLink } from '@apollo/client/link/retry' and remove 'apollo-link-retry' from dependencies.To retry on GraphQL errors, implement a custom 'retryIf' function that inspects the response.
Use attempts: { retryIf: (error, operation) => !!error || (response and response.errors) }Ensure consistency: if you provide a function for 'delay', you must also provide a function for 'attempts' (or use object config).
npm install apollo-link-retry or switch to @apollo/client/link/retry.
Ensure you create new RetryLink() and use concatenation: const link = new RetryLink().concat(httpLink);
Ensure delay.initial is a number, not a string.
No dependency data recorded yet.