Avery Yip
06/30/2022, 6:11 PMpush
in the update is actually not being consistent.
i.e. If I push 1
and 2
, only 1
is in the array
items.map((item) =>
table.upsert({
where: {
id: item.id,
},
create: {
id: item.id,
relatedIds: [item.relatedId],
},
update: {
relatedIds: {
push: item.relatedId,
},
},
})
);
Austin
06/30/2022, 9:36 PMVladi Stevanovic