Update table with NULL value #465
Answered
by
medz
MarcoFFSiciliano
asked this question in
Q&A
-
I'm trying to update optional / nullable table values with null. When i do this:
the column 'myNullableColumn' stays unchanged and gets NOT overwritten with NULL as expected. I can not figure out how to update table columns with NULL in dart prisma orm. Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
medz
Feb 20, 2025
Replies: 1 comment 3 replies
-
To update a database field that allows null to a null value, use This is a legacy issue. Since Dart does not distinguish between unset and declared null values, you will end up with |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PrismaUnion.$2(PrismaUnion.$2(const PrismaNull()))