Skip to content

Commit 613f429

Browse files
authored
Merge pull request #201 from richharms/graphql-java-11-fix
Switch from getType() to getUnwrappedNonNullType() in EnhancedExecutionStrategy
2 parents 3f37c08 + 140e4c1 commit 613f429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/graphql/annotations/strategies/EnhancedExecutionStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class EnhancedExecutionStrategy extends AsyncSerialExecutionStrategy {
3131

3232
@Override
3333
protected CompletableFuture<ExecutionResult> resolveField(ExecutionContext executionContext, ExecutionStrategyParameters parameters) {
34-
GraphQLObjectType parentType = (GraphQLObjectType) parameters.getExecutionStepInfo().getType();
34+
GraphQLObjectType parentType = (GraphQLObjectType) parameters.getExecutionStepInfo().getUnwrappedNonNullType();
3535
GraphQLFieldDefinition fieldDef = getFieldDef(executionContext.getGraphQLSchema(), parentType, parameters.getField().get(0));
3636
if (fieldDef == null) return null;
3737

0 commit comments

Comments
 (0)