[BUG]: Nested object null when first field is null even if the other field aren't null #3948
Open
1 task done
Labels
bug
Something isn't working
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.36.3
What version of
drizzle-kit
are you using?0.28.1
Other packages
No response
Describe the Bug
When using the nested object syntax with a leftJoin, I found a bug where the order of the properties defined if the all nested object is null. It looks like it only look the first field to define if the nested object will be defined.
My address table:
In this query, if my addressName is null, the all object is null even if the latitude and longitude is set.
But if I but the addressName at the end of the object, even if the addressName is null I still receive my inPersonDetails object with my latitude and longitude. (This is the behavior that is the more logical to me.
The text was updated successfully, but these errors were encountered: