Prisma.DbNull doesn't work with Prisma Accelerate
Prisma Accelerate doesn't seem to support Prisma.DbNull. This is unexpected and production-breaking for us since we enabled Accelerate. For example, if you use Accelerate:
And have a model with an option JSON property:
If you try and update the value to Prisma.DbNull, that value becomes an empty object
I can confirm that this is indeed an issue with Accelerate, because when I disable it, it works correctly.
And have a model with an option JSON property:
If you try and update the value to Prisma.DbNull, that value becomes an empty object
{} rather than NULL in the database and that's what the .update also responds with.I can confirm that this is indeed an issue with Accelerate, because when I disable it, it works correctly.