Class ObjectResponse
java.lang.Object
com.graphql_java_generator.client.request.AbstractGraphQLRequest
com.graphql_java_generator.client.request.ObjectResponse
- Direct Known Subclasses:
GraphQLReactiveRequest
,GraphQLRequest
This useless class is here only for compatibility with existing code, developped before the 1.6 release. It's
actually just a wrapper for the
AbstractGraphQLRequest
. It allows this kind of code to work as before:
ObjectResponse withHeroResponse = queryType.getHeroBuilder() .withQueryResponseDef("{id name appearsIn friends {id name}}").build(); [...] Character c = queryType.hero(withHeroResponse, character);
- Author:
- etienne-sf
-
Nested Class Summary
Nested classes/interfaces inherited from class com.graphql_java_generator.client.request.AbstractGraphQLRequest
AbstractGraphQLRequest.Payload
-
Field Summary
Fields inherited from class com.graphql_java_generator.client.request.AbstractGraphQLRequest
packageName
-
Constructor Summary
ConstructorDescriptionObjectResponse
(org.springframework.graphql.client.GraphQlClient graphQlClient, String schema, String graphQLRequest) ObjectResponse
(org.springframework.graphql.client.GraphQlClient graphQlClient, String schema, String graphQLRequest, RequestType requestType, String queryName, InputParameter... inputParams) -
Method Summary
Methods inherited from class com.graphql_java_generator.client.request.AbstractGraphQLRequest
exec, exec, execReactive, execReactive, getFragments, getGraphQLClassesPackageName, getGraphQLObjectMapper, getGraphQLRequest, getMutation, getMutationContext, getPayload, getQuery, getQueryContext, getRequestName, getRequestType, getSubscription, getSubscriptionClass, getSubscriptionContext, logExecution
-
Constructor Details
-
ObjectResponse
public ObjectResponse(org.springframework.graphql.client.GraphQlClient graphQlClient, String schema, String graphQLRequest) throws GraphQLRequestPreparationException -
ObjectResponse
public ObjectResponse(org.springframework.graphql.client.GraphQlClient graphQlClient, String schema, String graphQLRequest, RequestType requestType, String queryName, InputParameter... inputParams) throws GraphQLRequestPreparationException
-