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()com.google.gson.JsonObjectvoidvoidsetVariables(com.google.gson.JsonObject variables)
-
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
-
getVariables
public com.google.gson.JsonObject getVariables() -
setQuery
-
setVariables
public void setVariables(com.google.gson.JsonObject variables)
-