brazendynamo
brazendynamo
DTDrizzle Team
Created by brazendynamo on 3/22/2024 in #help
Separate file for relations
return type of db.query.users.findFirst({ with: profile }) when it's colocated shows the user profile type when the relations call is made elsewhere (e.g. separate relations.ts file), the type resolution shows { [...other user field types], profile: never }
6 replies
DTDrizzle Team
Created by brazendynamo on 3/22/2024 in #help
Separate file for relations
i do have 20-30 tables- i tried importing the tables to relations.ts but i get the undefined error
6 replies
DTDrizzle Team
Created by brazendynamo on 3/22/2024 in #help
Separate file for relations
if i copy the exact same code into users.ts it works fine
6 replies