danhaywood commented on code in PR #841: URL: https://github.com/apache/isis/pull/841#discussion_r855034276
########## incubator/viewers/graphql/viewer/src/main/java/org/apache/isis/viewer/graphql/viewer/source/ExecutionStrategyResolvingWithinInteraction.java: ########## @@ -0,0 +1,35 @@ +package org.apache.isis.viewer.graphql.viewer.source; + +import java.util.concurrent.CompletableFuture; + +import javax.inject.Inject; + +import org.springframework.stereotype.Service; + +import org.apache.isis.applib.services.iactnlayer.InteractionService; + +import lombok.RequiredArgsConstructor; + +import graphql.execution.AsyncExecutionStrategy; +import graphql.execution.ExecutionContext; +import graphql.execution.ExecutionStrategyParameters; +import graphql.execution.FieldValueInfo; + +@Service +@RequiredArgsConstructor(onConstructor_ = {@Inject}) +public class ExecutionStrategyResolvingWithinInteraction extends AsyncExecutionStrategy { + + private final InteractionService interactionService; + + @Override + protected CompletableFuture<FieldValueInfo> resolveFieldWithInfo(ExecutionContext executionContext, ExecutionStrategyParameters parameters) { + + interactionService.openInteraction(); Review Comment: Done. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@isis.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org