Class GraphQLRequestBody
java.lang.Object
io.micronaut.configuration.graphql.GraphQLRequestBody
Represents the request body input data to execute a GraphQL query.
- Since:
- 1.0
- Author:
- Marcel Overdijk
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the operation name.getQuery()
Returns the query.Returns the variables.void
setOperationName
(String operationName) Sets the operation name.void
Sets the query.void
setVariables
(Map<String, Object> variables) Sets the variables.
-
Constructor Details
-
GraphQLRequestBody
public GraphQLRequestBody()
-
-
Method Details
-
getQuery
Returns the query.- Returns:
- the query
-
setQuery
Sets the query.- Parameters:
query
- the query
-
getOperationName
Returns the operation name.- Returns:
- the operation name
-
setOperationName
Sets the operation name.- Parameters:
operationName
- the operation name
-
getVariables
Returns the variables.- Returns:
- the variables
-
setVariables
Sets the variables.- Parameters:
variables
- the variables
-