Lucas
12/21/2018, 2:51 AMtype Link {
id: ID!
createdAt: DateTime!
description: String!
url: String!
postedBy: User
votes: [Vote!]!
}
type Image {
id: ID!
createdAt: DateTime!
description: String!
postedBy: User
votes: [VoteImage!]!
}
type VoteImage {
id: ID!
image: Image!
user: User!
}
type Vote {
id: ID!
link: Link!
user: User!
}
got thishinsxd
12/21/2018, 9:05 AMLink
has a two way relation with Vote
, and so do Image
and VoteImage
, but they are completed decoupled.hinsxd
12/21/2018, 9:06 AMLink
has many Votes
, where each Vote
has an Image
?