fsprojects / FSharp.AWS.DynamoDB

F# wrapper API for AWS DynamoDB
MIT License
58 stars 18 forks source link

Support ReturnValuesOnConditionCheckFailure #68

Open bartelink opened 1 year ago

bartelink commented 1 year ago

For ConditionCheckFailedException, its now possible to have the exception include the content of the conflicting item in the same roundtrip, by setting ReturnValuesOnConditionCheckFailure flag in the request)

The library should either turn that on unconditionally (there is no RU charge impact, though obviously the response will be larger)

(NOTE the AWS SDK's exception type has long been plumbed for holding the content in question - the new bit is the fact that a DDB server will now include it in the response for single Item APIs as TransactWriteItems has done for some time).

It's unclear to me whether a SDK update will be necessary (my money is on no though)