Join Slack
Powered by
Can prisma do a o:m and a o:o on the same models? ...
# orm-help
m
Mo El
02/11/2022, 12:31 AM
Can prisma do a o:m and a o:o on the same models? Especially with a sort would be great
n
Nurul
02/11/2022, 4:52 AM
Hey
@Mo El
👋 Yes you can do self relations with the same model. Here is the documentation for
one-to-one self relation
and
one-to-many self relation
. You can do
sorting based on relation
as well.
3
Views
Open in Slack
Previous
Next