Skip to content

Commit 0a3b2d1

Browse files
author
Dane Pilcher
committed
docs: update comment
1 parent da2e943 commit 0a3b2d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ export class AppSyncModelVisitor<
11841184
connectionInfo.targetName !== 'id'
11851185
) {
11861186
// Need to remove the field that is targetName
1187-
// Don't remove the field if it is a primary key field
1187+
// Don't remove the field if it is part of the primary key field on the parent model
11881188
const primaryKeyFieldNames = getModelPrimaryKeyComponentFields(model).map(field => field.name);
11891189
connectionInfo.targetNames
11901190
.filter(targetName => !primaryKeyFieldNames.includes(targetName))

0 commit comments

Comments
 (0)