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 0a3b2d1 commit bf3f7c9Copy full SHA for bf3f7c9
packages/appsync-modelgen-plugin/src/visitors/appsync-visitor.ts
@@ -1184,9 +1184,9 @@ 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 part of the primary key field on the parent model
1188
const primaryKeyFieldNames = getModelPrimaryKeyComponentFields(model).map(field => field.name);
1189
connectionInfo.targetNames
+ // Don't remove the field if it is part of the primary key field on the parent model
1190
.filter(targetName => !primaryKeyFieldNames.includes(targetName))
1191
.forEach(targetName => removeFieldFromModel(model, targetName));
1192
}
0 commit comments