-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
amplify/dataIssue related to aws-amplify/amplify-category-apiIssue related to aws-amplify/amplify-category-apicommunity-issueGreat issues for the Amplify community to take on!Great issues for the Amplify community to take on!
Description
Describe the content issue:
The documentation for modeling a many-to-many relationship in the Next.js guide might be confusing. The tags field in the Post model and the posts field in the Tag model are defined as a.hasMany('PostTag', 'postId') and a.hasMany('PostTag', 'tagId'), respectively. However, these fields reference the PostTag model rather than directly referencing Tag or Post. This could mislead developers into thinking they are directly retrieving related Tag or Post records, when they are actually retrieving PostTag entries.
A clearer naming convention or additional explanation in the documentation would help avoid confusion.
URL page where content issue is:
Metadata
Metadata
Assignees
Labels
amplify/dataIssue related to aws-amplify/amplify-category-apiIssue related to aws-amplify/amplify-category-apicommunity-issueGreat issues for the Amplify community to take on!Great issues for the Amplify community to take on!