Joey
05/17/2024, 5:00 AMBen
05/17/2024, 5:03 AMgroup:A member user:B
- I start a transaction in my client, make a call to SpiceDB to TOUCH group:A member user:B and write some data to my database as well
- Something happens in my client, I need to rollback the transaction
- In this case calling DELETE group:A member user:B would actually leave SpiceDB in a different state to what it was before, because the relationship already existed, therefore the cleanup I do in my rollback handler should be a no-op instead of calling SpiceDB to deleteJoey
05/17/2024, 5:04 AMJoey
05/17/2024, 5:05 AMBen
05/17/2024, 5:07 AMJoey
05/17/2024, 5:08 AMJoey
05/17/2024, 5:08 AMJoey
05/17/2024, 5:08 AMBen
05/17/2024, 5:09 AMWriteRelationships might include 5 updates for example, and one of the relationships might already exist but the other 4 still need to be written to SpiceDB?Joey
05/17/2024, 5:10 AMJoey
05/17/2024, 5:11 AMBen
05/17/2024, 5:12 AMJoey
05/17/2024, 5:13 AMJoey
05/17/2024, 5:14 AMJoey
05/17/2024, 5:14 AMBen
05/17/2024, 5:14 AMJoey
05/17/2024, 5:14 AMJoey
05/17/2024, 5:14 AMJoey
05/17/2024, 5:15 AMBen
05/17/2024, 5:15 AMWriteRelationshipsResponseJoey
05/17/2024, 5:19 AMBen
05/17/2024, 5:31 AM