quick question on the caveat context stuff. Withou...
# spicedb
m
quick question on the caveat context stuff. Without that it only makes sense to add or remove tuples, but with caveats the idea of updating a tuple becomes a thing e.g. the use case I gave of having a fromTime and optional toTime. You might want to modify the caveats on a tuple e.g. to set that toTime. Is the current way to implement this to perform both a delete and an add?
v
im not sure I follow. If you want to modify the caveat context stored in a tuple, you issue a
TOUCH
with the new context.
m
Cool. Touch is an update. That is the answer I needed. +1
v
to me more specific, it's an upsert. If the tuple does not exist, its created. If it exists, it's updated.
4 Views