Skip to content

Commit 3de34f4

Browse files
committed
fix: remove early removal of field from model in the case of connection
1 parent e1638b7 commit 3de34f4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

packages/appsync-modelgen-plugin/src/visitors/appsync-visitor.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -701,9 +701,6 @@ export class AppSyncModelVisitor<
701701
isList: false,
702702
isNullable: field.isNullable,
703703
});
704-
} else if (connectionInfo.targetName !== 'id') {
705-
// Need to remove the field that is targetName
706-
removeFieldFromModel(model, connectionInfo.targetName);
707704
}
708705
field.connectionInfo = connectionInfo;
709706
}

0 commit comments

Comments
 (0)