Skip to content

Support passing headers to RequestExecutor via graphQLClient.executeQuery() #661

Discussion options

You must be logged in to vote

The answer above is correct for using the RequestExecutor.

We now also have a WebClientGraphQLClient. When using that you can provide headers as follows:

WebClient webClient = WebClient.create("http://localhost:8080/graphql");
WebClientGraphQLClient client = MonoGraphQLClient.createWithWebClient(webClient, headers -> headers.add("myheader", "test"));

client.reactiveExecuteQuery("...");

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jay3047
Comment options

Answer selected by rachanamamillapalli
Comment options

You must be logged in to vote
2 replies
@berngp
Comment options

berngp Oct 1, 2021
Collaborator

@rachanamamillapalli
Comment options

Comment options

You must be logged in to vote
2 replies
@paulbakker
Comment options

@rachanamamillapalli
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants