Isaiah Grey
04/21/2018, 2:57 AMdisconnect several relations that do not match the incoming relations to replace.
Current connection when created looks like:
const field = await ctx.db.mutation.createField({
data: {
...data,
values: { set: values },
read: {
connect: read.map(role => ({
type: role
}))
},
write: {
connect: write.map(role => ({
type: role
}))
}
}
});
I’m unsure of how to do this kind of update, I’ve played around with the role_some, role_every, role_none, but I’m still rather confused on what each of those mean and how they work specifically. Thanks!!nilan
04/21/2018, 1:11 PMrole_some, role_every and role_none are completely unrelated to disconnect.nilan
04/21/2018, 1:11 PMwhereIsaiah Grey
04/21/2018, 4:45 PMnilan
04/21/2018, 5:11 PM