david
05/04/2022, 11:40 PMmodel foo {
id String @id
bar Int[]
}
when I have: bar = [0, 0] and call
prisma.foo.create({
data: {
bar
},
the array is saved in the database, but when I try to set one of the values to null bar = [null, 0] I get a vague error failed: {"clientVersion":"3.12.0"} I tried turning on extra debug logging, but I’m not getting any useful info. I can also directly update the row directly in postgres without any issues ( … set bar = ‘{null,0}’) Is it possible to set null values in an integer array through prisma? I appreciate any help you can provide.James L
05/05/2022, 12:05 AMbar Int[] to bar YourEnum[]?James L
05/05/2022, 12:10 AMundefined instead of null?James L
05/05/2022, 12:11 AMJames L
05/05/2022, 12:11 AMdavid
05/05/2022, 4:01 PM