You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
realmikesolo
changed the title
[BUG]: NullReferenceException on update query in Xata
[BUG]: NullReferenceException on update query with Xata
Jan 5, 2024
What version of
drizzle-orm
are you using?^0.29.3
What version of
drizzle-kit
are you using?^0.20.2
Describe the Bug
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.
Environment & setup
@xata.io/client: "^0.28.3",
@xata.io/drizzle: "^0.0.14"
The text was updated successfully, but these errors were encountered: