$returningId() can not read properties of undefined id
Hey everyone! I’m running into an issue with onDuplicateKeyUpdate and $returningId(). I keep getting an error: “Cannot read properties of undefined (reading ‘id’)”
What I expect this to do: 1. Insert a new row into schema.category with whatever is in data. 2. If there’s a duplicate key, update the existing row’s id column to the same value . 3. Return the id of the inserted or updated row. Instead, I’m hitting the runtime error.