We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da2e943 commit 0a3b2d1Copy full SHA for 0a3b2d1
packages/appsync-modelgen-plugin/src/visitors/appsync-visitor.ts
@@ -1184,7 +1184,7 @@ export class AppSyncModelVisitor<
1184
connectionInfo.targetName !== 'id'
1185
) {
1186
// Need to remove the field that is targetName
1187
- // Don't remove the field if it is a primary key field
+ // Don't remove the field if it is part of the primary key field on the parent model
1188
const primaryKeyFieldNames = getModelPrimaryKeyComponentFields(model).map(field => field.name);
1189
connectionInfo.targetNames
1190
.filter(targetName => !primaryKeyFieldNames.includes(targetName))
0 commit comments