Prisma client not setting null values in the database #3552
Labels
bug/0-unknown
Bug is new, does not have information for reproduction or reproduction could not be confirmed.
kind/bug
A reported bug.
Bug description
When I try to use the Prisma client in my GraphQL resolver (starting from prisma version 2.6.1), I keep on getting an error that one of the keys provided is missing a value when I try perform an update query to set a field to null. The thing is that this field is actually defined as nullable both in the schema definition and across all the type definitions as well.
How to reproduce
Given that any of the keys in
data
isnull
regardless of whether that field has been set as nullable or not, I get this error in the console.Expected behavior
Set nullable values in the database to null without throwing an error.
Environment & setup
The text was updated successfully, but these errors were encountered: