Reading the <docs> it looks like I can do a many-t...
# orm-help
s
Reading the docs it looks like I can do a many-to-many relationship using an implicit relationship To my understanding there is no way to do this without using the implicit relation Can anyone confirm there is no way to create a many to many relationship without the implicit relationship? Here are 2 discussions asking for this feature https://github.com/prisma/prisma/issues/2186 https://github.com/prisma/prisma/issues/4910
1
a
Hey Steven, welcome to the community 👋! Prisma has the concept of both implicit and explicit many-to-many relations. If neither of those suit your needs, could describe your use case?
s
Thank you @Austin Can I do a many-to-many through relationship? In your explicit example Can I have a
categories Category[] @relation(through: CategoriesOnPost))
on the Post model?
a
“Many-to-many through” relations are not supported, the two issues you linked are the relevant ones, though. Feel free to add a +1 on those if you would like to see it added.
s
Thank you