Marcus
Explore posts from serversDTDrizzle Team
•Created by Marcus on 3/6/2024 in #help
Circular Dependency Hell
Is it just me or does using the relations API result in a bunch of circular deps that aren't lazily instantiated. For example, a foreign key reference is a function.
For relations, it's something like this:
workspace: one(workspace),
.
I feel like everything needs to be lazily instantiated because I'm eating alive by: Cannot read properties of undefined (reading 'Symbol(drizzle:Name)')
. I've spent 20-30 hours fighting it and I think I'm just going to delete the relations API although even though I like the DX.9 replies
DTDrizzle Team
•Created by Marcus on 1/4/2024 in #help
Modeling Parent Relationships Results in TS Error
When you have a data structure like this:
You see the error:
Is there a workaround? This is blocking us unfortunately.
3 replies