I'm getting circular dependency problems because each table relation is declared from the table file

Is there a better way to declare relations ? What I ended up doing was declaring all my relations in a separate file "relations.ts".
2 Replies
utopy
utopy14mo ago
And even though I could have multiple "relation" files for subscriptions/plans/users etc so that everything does not end up being in one big relation file, it would just feel much nicer to have the relations the closest possible to the table declaration.
🐧
🐧12mo ago
I'm facing same issues, how did you fix it? Mine was seperate relation file and table file
Want results from more Discord servers?
Add your server