miad
DTDrizzle Team
•Created by Syuro on 3/1/2024 in #help
one-to-many self-relation
Sorry to bother, Found the solution.
parent and children need to have the same relation name
7 replies
DTDrizzle Team
•Created by Syuro on 3/1/2024 in #help
one-to-many self-relation
@Brooks693 @Mykhailo @Syuro
Hello there, I got the same problem and this solution fixed it, umm partially.
Selecting comments with parentComment works. but selecting comment with replies doesn't.
I my case, it's about categories.
this is the categories schema:
Now this query works:
But this gives me an error:
And the error is:
Is this even possible? or only joining with parentId would work?
7 replies