com.infomaximum.cluster.graphql.executor.struct.GExecutionResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cluster-graphql Show documentation
Show all versions of cluster-graphql Show documentation
Library for creating a light cluster
The newest version!
package com.infomaximum.cluster.graphql.executor.struct;
import graphql.ExecutionResult;
import graphql.GraphQLError;
import graphql.execution.reactive.SubscriptionPublisher;
import java.util.List;
public class GExecutionResult {
private final ExecutionResult executionResult;
public GExecutionResult(ExecutionResult executionResult) {
this.executionResult = executionResult;
}
public T getData() {
if (executionResult.getData() instanceof SubscriptionPublisher sp) {
return (T) new GSubscriptionPublisher(sp);
} else {
return executionResult.getData();
}
}
public List getErrors() {
return executionResult.getErrors();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy