public class GraphQLRequest
extends java.lang.Object
| Constructor and Description |
|---|
GraphQLRequest(GraphQLOperationRequest request) |
GraphQLRequest(GraphQLOperationRequest request,
GraphQLResponseProjection responseProjection) |
GraphQLRequest(java.lang.String operationName,
GraphQLOperationRequest request) |
GraphQLRequest(java.lang.String operationName,
GraphQLOperationRequest request,
GraphQLResponseProjection responseProjection) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOperationName() |
GraphQLOperationRequest |
getRequest() |
GraphQLResponseProjection |
getResponseProjection() |
java.lang.String |
toHttpJsonBody()
Serializes GraphQL request to be used as HTTP JSON body
according to https://graphql.org/learn/serving-over-http specifications
|
java.lang.String |
toQueryString()
Serializes GraphQL request as raw query string
|
public GraphQLRequest(GraphQLOperationRequest request)
public GraphQLRequest(java.lang.String operationName,
GraphQLOperationRequest request)
public GraphQLRequest(GraphQLOperationRequest request, GraphQLResponseProjection responseProjection)
public GraphQLRequest(java.lang.String operationName,
GraphQLOperationRequest request,
GraphQLResponseProjection responseProjection)
public GraphQLOperationRequest getRequest()
public GraphQLResponseProjection getResponseProjection()
public java.lang.String getOperationName()
public java.lang.String toHttpJsonBody()
public java.lang.String toQueryString()