chimelli
chimelli
DTDrizzle Team
Created by chimelli on 4/22/2024 in #help
Id being required in types when using insert and values
Oh, you're right. My fault. I was missing it. I tried and it worked now. Thank you again for your time.
7 replies
DTDrizzle Team
Created by chimelli on 4/22/2024 in #help
Id being required in types when using insert and values
Thank you so much for taking time helping me. Unfortunately, this couldn't solve the typescript type issue I'm having. My issue is with primary key. I'm just following the tutorial on the drizzle page, and when i call insert(todo).values, typescript throws and erros telling me that id missing from the values.
7 replies
DTDrizzle Team
Created by chimelli on 4/22/2024 in #help
Id being required in types when using insert and values
What should i do? Is primary key auto-increment? I searched through the docs and couldn't find anything related to.
7 replies