We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The One relation appears to have inverted logic for the isNullable property.
One
isNullable
drizzle-orm/drizzle-orm/src/relations.ts
Lines 532 to 533 in a78eefe
Specifically, it appears to set isNullable to true if all parts of the relation's fields are notNull() columns.
true
notNull()
It looks to me like the isNullable should be set to true if none of the relation's fields are notNull().
The above logic is from the createOne() method:
createOne()
Lines 514 to 536 in e0aaeb2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
One
relation appears to have inverted logic for theisNullable
property.drizzle-orm/drizzle-orm/src/relations.ts
Lines 532 to 533 in a78eefe
Specifically, it appears to set
isNullable
totrue
if all parts of the relation's fields arenotNull()
columns.It looks to me like the
isNullable
should be set totrue
if none of the relation's fields arenotNull()
.The above logic is from the
createOne()
method:drizzle-orm/drizzle-orm/src/relations.ts
Lines 514 to 536 in e0aaeb2
The text was updated successfully, but these errors were encountered: