victorteokw / graphql-joker

GraphQL Joker is the ultimate GraphQL scaffolding tool.
GNU General Public License v3.0
74 stars 9 forks source link

Complicated reference needs association table #49

Closed victorteokw closed 6 years ago

victorteokw commented 6 years ago

For example,

Users and Courses.

Million of courses stared by million of users. association table is required.

victorteokw commented 6 years ago

It's known as many-to-many

victorteokw commented 6 years ago

This is called has many ... through ...

victorteokw commented 6 years ago
amur resource Favorite user:User course:Course
amur resource User name:String courses:[Course]:Favorite.course.user
amur resource Course title:String users:[User]:Favorite.user.course
victorteokw commented 6 years ago
amur resource Follow follower:User followee:User
amur resource User followers:[User]:Follow.follower.followee followees:[User]:Follow.followee.follower