|
3 | 3 | import graphql.ExecutionResult;
|
4 | 4 | import graphql.execution.ExecutionId;
|
5 | 5 | import graphql.execution.FieldValueInfo;
|
6 |
| -import graphql.execution.ExecutionPath; |
| 6 | +import graphql.execution.ResultPath; |
7 | 7 | import graphql.execution.instrumentation.ExecutionStrategyInstrumentationContext;
|
8 | 8 | import graphql.execution.instrumentation.InstrumentationContext;
|
9 | 9 | import graphql.execution.instrumentation.parameters.InstrumentationExecutionStrategyParameters;
|
@@ -38,7 +38,7 @@ protected RequestStack getStack() {
|
38 | 38 | public ExecutionStrategyInstrumentationContext beginExecutionStrategy(
|
39 | 39 | InstrumentationExecutionStrategyParameters parameters) {
|
40 | 40 | ExecutionId executionId = parameters.getExecutionContext().getExecutionId();
|
41 |
| - ExecutionPath path = parameters.getExecutionStrategyParameters().getPath(); |
| 41 | + ResultPath path = parameters.getExecutionStrategyParameters().getPath(); |
42 | 42 | int parentLevel = path.getLevel();
|
43 | 43 | int curLevel = parentLevel + 1;
|
44 | 44 | int fieldCount = parameters.getExecutionStrategyParameters().getFields().size();
|
@@ -106,7 +106,7 @@ private int getCountForList(FieldValueInfo fieldValueInfo) {
|
106 | 106 | public InstrumentationContext<Object> beginFieldFetch(
|
107 | 107 | InstrumentationFieldFetchParameters parameters) {
|
108 | 108 | ExecutionId executionId = parameters.getExecutionContext().getExecutionId();
|
109 |
| - ExecutionPath path = parameters.getEnvironment().getExecutionStepInfo().getPath(); |
| 109 | + ResultPath path = parameters.getEnvironment().getExecutionStepInfo().getPath(); |
110 | 110 | int level = path.getLevel();
|
111 | 111 | return new InstrumentationContext<Object>() {
|
112 | 112 |
|
|
0 commit comments