Class GraphQLRequestDto
java.lang.Object
de.qytera.qtaf.xray.dto.request.graphql.GraphQLRequestDto
A generic GraphQL request. These are split into a
query property and a variables property. The
variables property is used in parameterized queries and can contain arbitrary data for each variable.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVariable(String name, Object value) Adds a variable and its content to the GraphQL request.getQuery()The GraphQL query.com.google.gson.JsonObjectA GraphQL variable mapping.voidThe GraphQL query.voidsetVariables(com.google.gson.JsonObject variables) A GraphQL variable mapping.
-
Constructor Details
-
GraphQLRequestDto
public GraphQLRequestDto()
-
-
Method Details
-
addVariable
Adds a variable and its content to the GraphQL request.- Parameters:
name- the name of the variablevalue- the variable's data
-
getQuery
The GraphQL query. -
getVariables
public com.google.gson.JsonObject getVariables()A GraphQL variable mapping. -
setQuery
The GraphQL query. -
setVariables
public void setVariables(com.google.gson.JsonObject variables) A GraphQL variable mapping.
-