Support passing headers to RequestExecutor via graphQLClient.executeQuery() #661
-
Currently the graphQLClient.executeQuery method only accepts passing query, variables, operation name, request Executor. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Yes you can pass custom headers to request executor. You can use below code where in you can pass requestHeaders as method parameters:
|
Beta Was this translation helpful? Give feedback.
-
The answer above is correct for using the We now also have a WebClient webClient = WebClient.create("http://localhost:8080/graphql");
WebClientGraphQLClient client = MonoGraphQLClient.createWithWebClient(webClient, headers -> headers.add("myheader", "test"));
client.reactiveExecuteQuery("..."); |
Beta Was this translation helpful? Give feedback.
-
@paulbakker @berngp @srinivasankavitha Any timeline on when the release candidate would be available for consumption? |
Beta Was this translation helpful? Give feedback.
-
@paulbakker @berngp Sorry for the multiple threads, but would it be possible to release the new version today or provide an ETA? 😅 |
Beta Was this translation helpful? Give feedback.
The answer above is correct for using the
RequestExecutor
.We now also have a
WebClientGraphQLClient
. When using that you can provide headers as follows: