aws-sdk-js icon indicating copy to clipboard operation
aws-sdk-js copied to clipboard

Add ConditionExpression to DynamoDB batch write

Open ocdinvstr opened this issue 3 years ago • 3 comments

I would like to put a bunch of items with batchWrite if my condition validates, even putItem is supporting ConditionExpressions for that purpose, DynamoDB batchWrites do not support ConditionExpressions. For that I have to make many parallel calls to DynamoDB which could be solved with batchWrite if it had ConditionExpressions support. If we had it in batchWrite that would save me a lot.

ocdinvstr avatar Jan 30 '22 13:01 ocdinvstr

Same question!!!

shihuayong avatar Sep 11 '22 16:09 shihuayong

same here!

JohnnyUFT avatar Oct 27 '22 00:10 JohnnyUFT

I have the same problem, it took me hours to figure it out.

d3vCr0w avatar Nov 22 '23 19:11 d3vCr0w

does the DDB API even support batch writes with conditional expressions?

danny-zegel-zocdoc avatar Apr 17 '24 19:04 danny-zegel-zocdoc

Hello. This is not something that's supported by the DynamoDB API, and is called out in the DynamoDB documentation.

kellertk avatar Apr 23 '24 21:04 kellertk