Insert record in dynamodb table using DynamobdMapper when record doesn't exist.

0

I created a DDB table which contains version number. When i try to create new record in DDB table using DDB mapper using "DynamoDBMapperConfig.SaveBehavior.PUT" it is failing with the error as conditional failure but when i try to using "DynamoDBMapperConfig.SaveBehavior.CLOBBER" it is overwriting the record.

So how do i insert record in to the DDB only when record doesn't exist using DynamoDBMapper?

已提問 2 年前檢視次數 63 次