Hi guys, I had a few queries. How can one model so...
# prisma-whats-new
g
Hi guys, I had a few queries. How can one model something like this:
Copy code
type User {
  friends: [User!]! @relation(name: "UserFriends")
graphcool console gives an error
A relation directive with a name must appear exactly 2 times.
And the other query is related to this schema:
Copy code
type Photo {
  file: File @relation(name: "PhotoToFile")
}

type Song {
  file: File @relation(name: "SongToFile")
}

type File {
  contentType: String! @relation(name: "SongToFile")/@relation(name: "PhotoToFile")
}
Now that File is a generated type, and if I were to link these relations to File's
contentType
field, is it possible to specify multiple relations on the same field?