Hey Guys: I’ve read in the doc that `set: Override...
# prisma-whats-new
l
Hey Guys: I’ve read in the doc that
set: Override the existing list with an entirely new list.
https://www.prismagraphql.com/docs/reference/prisma-api/mutations-ol0yuoz6go#updating-nodes But in practise, let’s say I have
numbers: [1, 2, 3, 4]
and then proceed to do a
numbers: { set: [9] }
(in a mutation.update) I would expect
numbers
to return
[9]
, but instead, I get
numbers: [9, 2, 3, 4]
Any idea as to why that is ?
n
this sounds like unexpected behaviour, could you described the problem + a reproduction here: https://github.com/graphcool/prisma?
l