PatchItemAsync does not support IfMatchEtag property #4882
Closed
KT-JuliaDias
started this conversation in
General
Replies: 1 comment 1 reply
-
An ETag means you have read the document already - why not use replace (with etag precondition)? Replace would have lower RU-charge than Patch and supports etag preconditions. PatchItem really is a convenience API for applications attempting to update documents wihtout reading the document before. If you absolutely want to do this you can use patch filter predicates - see |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm using Cosmos SDK in my application and using ETag optimistic locking for Upserts.
I'll need to use the PatchItemAsync method, however, it currently does not support the ETag property.
Do you have any plans to add this feature for patches?
Thank you, and looking forward to your response.
Beta Was this translation helpful? Give feedback.
All reactions