Skip to content

Provide a way to override request Url #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lukasjapan opened this issue Mar 3, 2022 · 0 comments
Open

Provide a way to override request Url #88

lukasjapan opened this issue Mar 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@lukasjapan
Copy link

lukasjapan commented Mar 3, 2022

Is your feature request related to a problem? Please describe.
When having a customized WebClient bean that sets its own baseUrl, all requests go to that URL instead of graphql.client.url because setup is omitted.
There is no way to override url. (Is there?)

Ref:

Describe the solution you'd like

provide a way to set the url on a per request basis in the request builder

or

graphql-spring-webclient sets .uri() based on the config value for each request.

->

WebClient.RequestBodySpec spec = webClient.post().contentType(MediaType.APPLICATION_JSON);

or both

Describe alternatives you've considered

Multiple WebClient Beans + manually wiring the correct one to GraphQLWebClient but its too technical

Additional context

@lukasjapan lukasjapan added the enhancement New feature or request label Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant