tmoney
09/30/2019, 7:50 PMset
with no items? So it works if you have two things and then take one away. But you can’t just pass it an empty array (or null, I tried), it just ignores it, and doesn’t disconnect anything. If you can’t make set
disconnect everything, it kinda feels broken to even use it most of the time…
query updateUser {
updateUser (
where: {
id: "asdfasdlfkjasdlfkj"
}
data: {
posts: {
set: [] // < ---- What can you pass here to disconnect all relations?
}
}
) {
id
}
}
yogivan
09/30/2019, 8:30 PMset: []
works for me.tmoney
09/30/2019, 8:46 PMtmoney
09/30/2019, 8:49 PM