DEV Community

Discussion on: Data Modeling in Depth with GraphQL & AWS Amplify - 17 Data Access Patterns

Collapse
rafaelfaria profile image
Rafael Cardoso

Really good resource Nader.

What I find challenging is when I model my graphql schema, without Auth they work well, as soon as I add authentication, then I start getting problems with it. Mostly with many to many relationship with nested models.

Have you come across any of that? Would you be able to add this example and introduce auth to it?

Thanks

Collapse
alexwhite24 profile image
AN

You can break the Many to Many Schema with a intermediate Table.
Example Group to Users
Model:

  • Group
  • User
  • GroupUser This will have ID for Both the Group and User as Linkage

Also, just wondering does AWS Amplify charges link to DB Model Operation? Can't find it any place like how much is model we create how much data operation happens with the model.

-Regards
Alex