felix.yuan
03/26/2024, 7:06 AMdocument:id
resource is defined to allow only one relation reviewer
with subject user:id
, If second reviewer is assigned, either simply throws error or overrides the former one.vroldanbet
03/26/2024, 8:43 AMWriteRelationships
with a Precondition
. For example you can send a request that specifies "no other relationship like this should exist" using operation OPERATION_MUST_NOT_MATCH
.
Please have a look at https://buf.build/authzed/api/docs/main:authzed.api.v1#authzed.api.v1.Precondition