Skip to content

Document variable usage #20

Answered by balazsmaria
balazsmaria asked this question in Q&A
Discussion options

You must be logged in to vote

What I did was:

		Map<String, String> vars = Map.of("myvar", "value");

		var request = GraphQLRequest.builder()
				.header(HttpHeaders.AUTHORIZATION, TOKEN)
				.resource("query.graphql")
				.variables(vars)
				.build();

Replies: 3 comments 1 reply

Comment options

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

Answer selected by oliemansm
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #19 on January 16, 2021 13:25.