graphql.kickstart.execution.DecoratedExecutionResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of graphql-java-kickstart-jakarta5 Show documentation
Show all versions of graphql-java-kickstart-jakarta5 Show documentation
relay.js-compatible GraphQL servlet
The newest version!
package graphql.kickstart.execution;
import graphql.ExecutionResult;
import graphql.GraphQLError;
import java.util.List;
import java.util.Map;
import lombok.RequiredArgsConstructor;
import org.reactivestreams.Publisher;
@RequiredArgsConstructor
class DecoratedExecutionResult implements ExecutionResult {
private final ExecutionResult result;
boolean isAsynchronous() {
return result.getData() instanceof Publisher;
}
@Override
public List getErrors() {
return result.getErrors();
}
@Override
public T getData() {
return result.getData();
}
@Override
public boolean isDataPresent() {
return result.isDataPresent();
}
@Override
public Map