brazendynamo
DTDrizzle Team
•Created by brazendynamo on 3/22/2024 in #help
Separate file for relations
is it possible to define orm relations in a file different from where the tables are defined? i have
users.ts
and relations.ts
, but even if i import "relations";
before instantiating the drizzle object, i keep running into undefined is not an object (evaluating relation.referencedTable)
6 replies