Hey guys, trying to implement something like the f...
# prisma-whats-new
m
Hey guys, trying to implement something like the following:
Copy code
type File implements Node {
  ...
  owner: User! @relation(name: "FileOwner")
}

type User implements Node {
  ...
  resume: File! @relation(name: "FileOwner")
  coverLetter: File! @relation(name: "FileOwner")
}
However I receive
A relation directive with a name must appear exactly 2 times.
Is there a better approach than creating 2 seperate relationships with 2 seperate propertys on the File type? Thanks for any help!
n
@meatwallace no, that's how it's supposed to be 🙂