Bulk insert API throwing error if the relation is already exist #2292
-
this API http://localhost:8443/v1/relationships/importbulk throws error and the error message can someone help me to know how I can add the operations/precondition to this payload to avoid the error when relationship is already exist. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The authzed-go client has a retryable client that addresses this problem for use in |
Beta Was this translation helpful? Give feedback.
The authzed-go client has a retryable client that addresses this problem for use in
zed
. If you usezed
orauthzed-go
you get this for free; we've got open issues on the other client libraries to implement this same logic. I don't think there's a good way to do it against the HTTP lib without writing your own code.