Defining a one-to-many relation within the same table?
I have a Postgres table phone_call and need to define a one-to-many relation between a row and other rows in the table:
When I query findMany with parent, it works, but when I do a with children, it doesn't.
No problem with 1-to-M across tables... but within the same table is there a way to do this?
Much appreciated!
0 Replies