com.graphql_java_generator.client.request.ObjectResponse Maven / Gradle / Ivy
/**
*
*/
package com.graphql_java_generator.client.request;
import com.graphql_java_generator.annotation.RequestType;
import com.graphql_java_generator.exception.GraphQLRequestPreparationException;
/**
* 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 {@link 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
*
*/
abstract public class ObjectResponse extends AbstractGraphQLRequest {
/** {@inheritDoc} */
public ObjectResponse(String graphQLRequest) throws GraphQLRequestPreparationException {
super(graphQLRequest);
}
/** {@inheritDoc} */
public ObjectResponse(String graphQLRequest, RequestType requestType, String queryName,
InputParameter... inputParams) throws GraphQLRequestPreparationException {
super(graphQLRequest, requestType, queryName, inputParams);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy