Can I have the same relationship specified multipl...
# spicedb
u
Hello 👋 Is there a standard way of handling relationships that are both created and deleted within the same
WriteRelationshipsRequest
? E.g. do creates take priority over deletes?
v
👋 they happen transactionally, and with
SERIALIZABLE
isolation level, so ordering shouldn't matter
u
I meant if the same relationship is both created and deleted in the same WriteRelationshipsRequest call. Does the create or the delete win?
y
neither. you get an error. you can't have the same relationship specified multiple times in the same request, regardless of operation.
u
thanks!