Cannot read properties of undefined (reading 'name')
I have a schema: roles,
I wrote code to update roles:
When i try updating a role i get the following error:
I opened up the file and noticed that 'buildUpdateSet' is unable to get one of the columns
The file is from drizzle-orm so i might be a bug?
2 Replies
It's unlikely bug, this is tested well
Can you put together e reproduction repo? I can take a look
Can you console log the
role
object, before calling db.update.
I'm sure it has other keys that are not in the tableyep, it was this. Thanks for taking the time to respond!