Skip to content

Commit 6d724c1

Browse files
committed
Update old V1 error message for V2
1 parent aab5e7d commit 6d724c1

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
@@ -708,7 +708,7 @@ export class AppSyncModelVisitor<
708708
const connectionInfo = field.connectionInfo;
709709
if (modelTypes.includes(fieldType) && connectionInfo === undefined) {
710710
printWarning(
711-
`Model ${model.name} has field ${field.name} of type ${field.type} but its not connected. Add a @connection directive if want to connect them.`,
711+
`Model ${model.name} has field ${field.name} of type ${field.type} but its not connected. Add the appropriate ${field.isList ? '@hasMany' : '@hasOne'}/@belongsTo directive if you want to connect them.`,
712712
);
713713
return false;
714714
}

0 commit comments

Comments
 (0)