Fuzbo
Explore posts from serversDTDrizzle Team
•Created by Fuzbo on 5/26/2023 in #help
Many-to-Many Self Relation
I'm looking to migrate from Prisma, but I'm having trouble trying to figure out how a many-to-many self relation should be defined.
The prisma schema I has previously was similar to:
Currently my schema looks like:
I'm just not quite sure how to construct the relations properly for the self-referencing with the many-to-many relation.
69 replies
TTCTheo's Typesafe Cult
•Created by Fuzbo on 4/14/2023 in #questions
tRPC but just the React Query abstraction?
I'm integrating with an existing Python backend, but I really like the way tRPC procedures are defined and used (with react query in particular).
I could make fetch calls from the NextJS backend to the python backend, because the backends are on the same machine, but I would still prefer to have the browser show the direct API call instead of trying to debug in two separate interfaces.
Not sure if that makes sense, but I'm happy to elaborate more if there are any questions 🙂
7 replies