bennettcohen
DTDrizzle Team
•Created by bennettcohen on 7/11/2024 in #help
Type safety on .set() method?
Hey folks - I was wondering if there is a way to get type safety when updating a row using the .set method? In the example below,
updated_at
is the table name, not the property name updatedAt
. This code runs with no errors, but of course never updates the updated at because it doesn't exist!
Any tips for getting this to be type-safe ?12 replies