diff --git a/src/main/java/io/cryostat/graphql/RootNode.java b/src/main/java/io/cryostat/graphql/RootNode.java index bb10017db..8022c6431 100644 --- a/src/main/java/io/cryostat/graphql/RootNode.java +++ b/src/main/java/io/cryostat/graphql/RootNode.java @@ -17,6 +17,7 @@ import io.cryostat.discovery.DiscoveryNode; +import io.smallrye.mutiny.Uni; import org.eclipse.microprofile.graphql.Description; import org.eclipse.microprofile.graphql.GraphQLApi; import org.eclipse.microprofile.graphql.Query; @@ -26,7 +27,7 @@ public class RootNode { @Query("rootNode") @Description("Get the root target discovery node") - public DiscoveryNode getRootNode() { - return DiscoveryNode.getUniverse(); + public Uni getRootNode() { + return Uni.createFrom().item(DiscoveryNode::getUniverse); } }