andi-huber commented on a change in pull request #841:
URL: https://github.com/apache/isis/pull/841#discussion_r791405028
##########
File path:
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:
use rather ..
```
interactionService.runAnonymous(()->{
...
});
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]