Skip to content

Commit 140e4c1

Browse files
committed
Switched from getType() to getUnwrappedNonNullType()
1 parent 3f37c08 commit 140e4c1

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)