armorform
PPrisma
•Created by armorform on 4/24/2024 in #help-and-questions
Many to many on the same model, multi directional?
What I'm doing now is basically returning an object that is an array of both include fields:
And as you can imagine, it's kind of annoying / messy.
What I'd like to do is quite simple; just have the same "include" field returned on both models so I don't have to do this messy back and forth juggling between which "side" the relation was originally created on.
Anyways, thanks in advance SO much for your help! I promise I've already spent a few hours trying to wrap my head around this...
5 replies
PPrisma
•Created by armorform on 4/24/2024 in #help-and-questions
Many to many on the same model, multi directional?
^ here's what the schema looks like, and I think what I'm better getting at is how to avoid having to do this:
5 replies
PPrisma
•Created by armorform on 4/24/2024 in #help-and-questions
Many to many on the same model, multi directional?
5 replies