graphql-flutter icon indicating copy to clipboard operation
graphql-flutter copied to clipboard

Pass NextLink to retry request with ErrorLink

Open bsr203 opened this issue 6 years ago • 1 comments

Recently, ErrorLink feature is added The apollo lib also pass NextLink for retries. Which is needed for retrying the request on token expiration, which is quite common. See the relevant doc

In the PR @jayjun mentioned about it

Sure, I like the idea. Having said that, ErrorResponse also contains the relevant Operation and FetchResult (and also a NextLink for retries but in hindsight, should be left out since I didn’t implement that).

But, it looks like we just need to pass it with ErrorResponse see

It would be great to have NextLink passed through ErrorResponse

bsr203 avatar Dec 15 '19 14:12 bsr203