Joseph
04/24/2020, 5:05 PMtype User {
  ...
  matches: [Match!]!
}
type Match {
  ...
  host: User!
  client: User!
  disconnector: User
}
Can't figure out how to do relations in this many to many where the User could be 1+ of several fields
I've tried using 1 relation for all of them, but got the expected errornikolasburk
Joseph
04/24/2020, 5:23 PMmatchesAsHost
matchesAsClient
matchesAsDisconnector
Or is there a way I could just use matches and then do some extra work in the resolver?Joseph
04/24/2020, 5:31 PMmatches in my graph and manually resolve it from matchesAsHost and matchesAsClientJoseph
04/24/2020, 5:43 PMtype User {
  ...
  matches: [Match!]! @relation("MatchUsers")
}
type Match {
  ...
  users: [User!]! @relation("MatchUsers")
  disconnector: User
}
Not sure if that's valid