You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it is frustrating that DocumentClient transactWrite forces you to use a 'conditional expression', whereas the underlying Dynamodb transactWriteItem does not.
DocumentClient TransactWrite uses class Operation, where the field expression is a required field, even though it then gets translated into a Dynamodb TransactWriteItem, whose conditionExpression is not required.
Its inconvenient to always have to use a conditional expression, eg just PUT an object into db.
Happy to submit a PR if there's agreement (to change Option.expression type to nullable String)
The text was updated successfully, but these errors were encountered:
seba-i
changed the title
Inconsistant requirement of conditional expressions in DocumentClient vs Dynamodb for transact writes
DocumentClient: inconsistant requirement of conditional expressions vs Dynamodb, for transact writes
Sep 20, 2024
Hi, it is frustrating that DocumentClient transactWrite forces you to use a 'conditional expression', whereas the underlying Dynamodb transactWriteItem does not.
DocumentClient TransactWrite uses class Operation, where the field
expression
is a required field, even though it then gets translated into a Dynamodb TransactWriteItem, whoseconditionExpression
is not required.Its inconvenient to always have to use a conditional expression, eg just PUT an object into db.
Happy to submit a PR if there's agreement (to change Option.expression type to nullable String)
The text was updated successfully, but these errors were encountered: