NullReferenceException on update
query using Drizzle and Xata
#1315
Labels
bug
Something isn't working
update
query using Drizzle and Xata
#1315
Describe the bug
Attempt to update a row in the database using the
.update()
method, but it throws an error even after update operation is successfully executed.To Reproduce
Attempt to update a row in the database using the
.update()
method.The update operation is successfully executed, changing the specified field in the database, but it throws an error:
/node_modules/@xata.io/drizzle/src/session.ts:66 Object.keys(records[0]!).map( ^ TypeError: Cannot convert undefined or null to object
However, if I add
.returning()
method to the query, it will be successfully executed without throwing any errors.Expected behavior
The update operation should be executed successfully without throwing any errors.
Software version
@xata.io/client: "^0.28.3",
@xata.io/drizzle: "^0.0.14"
The text was updated successfully, but these errors were encountered: