Joey
07/16/2023, 11:44 AMDELETE operation in WriteRelationships to remove the previous relationship and CREATE to add the new one, in a single callkoszyq
07/16/2023, 1:36 PM[{
operation: v1.RelationshipUpdate_Operation.DELETE,
relationship: {
resource: folderObjectReference,
subject: employeeSubjectReference,
relation: 'manager',
},
},
{
operation: v1.RelationshipUpdate_Operation.TOUCH,
relationship: {
resource: folderObjectReference,
subject: employeeSubjectReference,
relation: 'viewer',
},
}
]
so I need to check current relation (manager) anyway, or should I have delete operation for all of the remaining relations: manager, editor, blocked (except the new one: viewer)?Joey
07/16/2023, 6:21 PMJoey
07/16/2023, 6:21 PM