Hello, I'm trying to enforce a Singleton pattern -...
# spicedb
a
Hello, I'm trying to enforce a Singleton pattern - e.g. only one user can be an owner of an edge. I'm trying to avoid race conditions transferring ownership. I could get something working if deleting on edge produced a failure if the edge didn't exist, or if the precondition check let me assert the exact number of edges expected. Without either of these primitives, I'm not sure of an atomic way to re-assign ownership
8 Views