graphql-client
graphql-client copied to clipboard
How to use Polly with this library?
trafficstars
I'd like to use polly to implement retries for failed requests that return a Too Many Requests status code. Is there any sample available or base class where i can access the used http client?
Just to be sure, i'm not talking about wrapping the graphQl client calls, i'd like to know if there is a proper way to inject polly into the existing pipeline.
Use DI and inject an httpclient into the graphqlhttpclient. You can configure your httpclient with your polly requirements.