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:
|
@ConditionalOnMissingBean |
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
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.urlbecause setup is omitted.There is no way to override url. (Is there?)
Ref:
graphql-spring-webclient/graphql-webclient-spring-boot-autoconfigure/src/main/java/graphql/kickstart/spring/webclient/boot/GraphQLWebClientAutoConfiguration.java
Line 35 in 17ffcc8
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.->
graphql-spring-webclient/graphql-webclient/src/main/java/graphql/kickstart/spring/webclient/boot/GraphQLWebClientImpl.java
Line 35 in 17ffcc8
or both
Describe alternatives you've considered
Multiple WebClient Beans + manually wiring the correct one to GraphQLWebClient but its too technical
Additional context