OptionalmaxRetries?: numberMaximum retry attempts (default: 3)
OptionaldelayMs?: numberInitial delay between retries in ms (default: 300)
OptionalshouldRetry?: (err: unknown, attempt: number) => booleanPredicate to decide if a retry should be attempted.
Receives the error and current attempt number.
Default: skip retry for GraphQLClientError with isGraphQLError === true
A GraphQLLink that retries failed operations
Retry link: retry failed operations with exponential backoff. By default retries 3 times with 300ms initial delay and 2x backoff, skipping retry for GraphQL-layer errors (server rejected the query).