io.smallrye.graphql.client.core.Document Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smallrye-graphql-client-api Show documentation
Show all versions of smallrye-graphql-client-api Show documentation
SmallRye specific Client API, extending the MicroProfile client api, allowing us to play with the api first before we move it to the spec
package io.smallrye.graphql.client.core;
import static io.smallrye.graphql.client.core.utils.ServiceUtils.getNewInstanceOf;
import static java.util.Arrays.asList;
import java.util.List;
public interface Document extends Buildable {
/*
* Static factory methods
*/
static Document document(FragmentOrOperation... operations) {
Document document = getNewInstanceOf(Document.class);
document.setOperations(asList(operations));
return document;
}
/*
* Getter/Setter
*/
List getOperations();
void setOperations(List operations);
}