type UpdateOption func(*dynamodb.UpdateItemInput) error
func UpdateItem(ctx context.Context, pk, sk Atrribute, fields interface{}, opt ...UpdateOption)
func (t *Client) WithUpdateItem(pk string, sk string, fields interface{}) types.TransactUpdateItem {
}
Implement
UpdateItemoperation to update specified fields on a DynamoDB record.This operation should accept a variadic options argument for customizing behavior (example:s WithConditionalUpdate, WithOptimisticLock)
Key requirements
add balance 100)https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.UpdateExpressions.html
Changes to TransactWriteItems
TransactWriteItems should support UpdateItem input.
Implement
WithUpdateItemoption for TransactWriteItems.https://github.com/oolio-group/dynago/blob/main/transaction_items.go