Missing explanation about using Relations "connect" and "disconnect" in combination
Pierre Wizla
Hi!
"Connect can be used in combination with disconnect" is meant to be read as "you can use both", as opposed to what you would do with
set
. Set replaces everything.Connect and disconnect can be combined, meaning that both can be passed in the same body:
{
data: {
categories: {
connect: [2, 4],
disconnect: [5, 6]
}
}
}