Adam Akiva
Adam Akiva
DTDrizzle Team
Created by addamsson on 6/10/2024 in #help
Drizzle complains when I'm trying to insert into a table.
In order to fix your issue what you need to do is to transform the Date objects to String using (for example):
createdAt: new Date().toISOString()
createdAt: new Date().toISOString()
I tested your code snippet and the error is indeed on the id for some reason, but this solution should resolve your issue (worked for me at least). It might be worth to do additional digging to find out why the error is displayed on the id field.
5 replies