p o h a
p o h a
Explore posts from servers
DTDrizzle Team
Created by p o h a on 7/19/2024 in #help
Foreign key reference in drizzle causes type error
Thanks a ton!!! Following you on twitter!
10 replies
DTDrizzle Team
Created by p o h a on 7/19/2024 in #help
Foreign key reference in drizzle causes type error
no i just figured if the type error is because it has an implicit any type then I should mention the type
10 replies
DTDrizzle Team
Created by p o h a on 7/19/2024 in #help
Foreign key reference in drizzle causes type error
but this gave me a circular reference type error
10 replies
DTDrizzle Team
Created by p o h a on 7/19/2024 in #help
Foreign key reference in drizzle causes type error
that works but...how, I tried mentioning the return type like this before:
user_id: varchar("user_id").references(():ReturnTypeOrValue<typeof users.id> => users.id, { onDelete: "cascade" }), //fk to users.id
user_id: varchar("user_id").references(():ReturnTypeOrValue<typeof users.id> => users.id, { onDelete: "cascade" }), //fk to users.id
10 replies