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

How to use Polly with this library?

Open endeffects opened this issue 1 year ago • 2 comments
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.

endeffects avatar Jan 17 '24 15:01 endeffects

Use DI and inject an httpclient into the graphqlhttpclient. You can configure your httpclient with your polly requirements.

richardaubin avatar Feb 07 '24 05:02 richardaubin