drizzle-orm icon indicating copy to clipboard operation
drizzle-orm copied to clipboard

fix(orm): avoid nullifying nested objects when later fields are non-null

Open TheDerbiedOne opened this issue 6 months ago • 0 comments

Fixes #1603.

Root cause: mapResultRow could nullify a nested object based on an earlier null field even when later fields from the same joined table were non-null.

Adds regression coverage: drizzle-orm/tests/mapResultRow.nullify-nested.test.ts.

TheDerbiedOne avatar May 21 '26 06:05 TheDerbiedOne