public class GraphQLRequest
extends java.lang.Object
Constructor and Description |
---|
GraphQLRequest(GraphQLOperationRequest request) |
GraphQLRequest(GraphQLOperationRequest request,
GraphQLResponseProjection responseProjection) |
Modifier and Type | Method and Description |
---|---|
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(GraphQLOperationRequest request, GraphQLResponseProjection responseProjection)
public GraphQLOperationRequest getRequest()
public GraphQLResponseProjection getResponseProjection()
public java.lang.String toHttpJsonBody()
public java.lang.String toQueryString()