This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
Error when passing a null value to a nullable Json field type #693
Labels
bug/2-confirmed
We have confirmed that this is a bug.
kind/bug
A reported bug.
tech/typescript
Issue for tech TypeScript.
topic: json
Milestone
Bug description
When attempting to insert a null value for a nullable Json field, an error is thrown in Prisma Client
I haven't dived into this in great depth, but on https://github.com/prisma/prisma/blob/master/src/packages/client/src/runtime/query.ts#L684 , obj.values is accessed before obj is checked for null; perhaps the root cause.
How to reproduce
Json?
)Expected behavior
Null to be inserted
Prisma information
Sanitized schema:
Environment & setup
The text was updated successfully, but these errors were encountered: