yetitwo
07/18/2022, 8:09 PMjohn.conti
07/19/2022, 6:27 PMDeleteRelationships
successfully. I noticed the calls are idempotent as I would expect. Removing something that doesn't exist returns success and a zedtoken. However, I wanted to play with detecting that a given relationship was not present on delete.
I modified my DeleteRelationshipsRequest
to add an optional_preconditions
array containing a single Precondition
where OPERATION_MUST_MATCH
was the value of operation
and the filter
value was the same as the `DeleteRelationshipsRequest`'s relationship_filter
value. This did not change the response at all.
Is there a way to detect the deletion of something that does not exist? If yes, what in my request is not correct? If no, what is the exact meaning of the Preconditions
contained in optional_preconditions
? TIA!Joey
07/19/2022, 6:33 PMOPERATION_MUST_MATCH
is the correct approach. How are you constructing the request itself? It should fail if the relationship doesn't exist at the time the delete occursjohn.conti
07/19/2022, 6:36 PMJoey
07/19/2022, 6:46 PMcalle-ibx
07/19/2022, 8:44 PMJoey
07/19/2022, 8:53 PMzed
?Joey
07/19/2022, 8:53 PMcalle-ibx
07/19/2022, 8:54 PMJoey
07/19/2022, 8:55 PMJoey
07/19/2022, 8:55 PMcalle-ibx
07/19/2022, 8:55 PMJoey
07/19/2022, 8:56 PMJoey
07/19/2022, 8:56 PMcalle-ibx
07/19/2022, 8:56 PMJoey
07/19/2022, 8:56 PMJoey
07/19/2022, 8:57 PMcalle-ibx
07/19/2022, 8:57 PMcalle-ibx
07/19/2022, 9:12 PMJoey
07/19/2022, 9:13 PMcalle-ibx
07/19/2022, 9:14 PMcalle-ibx
07/19/2022, 9:14 PMJoey
07/19/2022, 9:15 PMJoey
07/19/2022, 9:15 PMcalle-ibx
07/19/2022, 9:16 PMJoey
07/19/2022, 9:16 PMJoey
07/19/2022, 9:16 PMJoey
07/19/2022, 9:16 PMJoey
07/19/2022, 9:16 PMJoey
07/19/2022, 9:17 PM