Adding @relation more than twice #2191
-
Below is my datamodel.graphql
Each user can have list of gifts and each gift is made by a user and given to another user. When I try to deploy this it give me below error
So I want to query my users and be able to see the list of the user gifts and see each gift is brought by who and also query the list of gifts to see each gift is brought by who and given to who. Maybe from database point of view it would be like this How can we do this? I tried to do the relation between 3 of them but I get A relation directive cannot appear more than twice. error. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This sounds like a Prisma 1 question. Prisma 1's repository was moved to https://github.com/prisma/prisma1, so you might want to ask your question there again to get an answer. |
Beta Was this translation helpful? Give feedback.
This sounds like a Prisma 1 question. Prisma 1's repository was moved to https://github.com/prisma/prisma1, so you might want to ask your question there again to get an answer.