Hi I am sure this is a newbie FAQ but I cannot see...
# spicedb
m
Hi I am sure this is a newbie FAQ but I cannot seem to find info on it. During schema development presumably it is common to iteratively make and apply schema tweaks and reload data. Reasonably the managed permissions service on authzed.com complains if I try to create an existing relationship:
Copy code
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
    status = StatusCode.UNKNOWN
    details = "unable to write relationships: ERROR: duplicate key value violates unique constraint "pk_relation_tuple" (SQLSTATE 23505)"
    debug_error_string = "{"created":"@1655259168.303000000","description":"Error received from peer ipv4:130.211.126.102:443","file":"src/core/lib/surface/call.cc","file_line":953,"grpc_message":"unable to write relationships: ERROR: duplicate key value violates unique constraint "pk_relation_tuple" (SQLSTATE 23505)","grpc_status":2}"
>
Is there an 'upsert' semantic for writing relationships? Check for existence before writing?