Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Doing a conditional update in dynamodb with the data model

Is it possible to do a conditional update of an item in dynamodb using the data model as you can with the document model? If there isn't a way to do a conditional update does the .Net SDK have a method to convert an object into an UpdateItemRequest object?

like image 616
Aaron Avatar asked Nov 02 '25 09:11

Aaron


1 Answers

Take a look at the UpdateExistingAttributeConditionally method for an example of how to perform a conditional update on an item in DynamoDB using the .NET SDK data model. You can also set a ConditionExpression using the document model when using the midlevel sdk for .NET.

like image 151
Alexander Patrikalakis Avatar answered Nov 05 '25 00:11

Alexander Patrikalakis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!