What I need to do:
Update a column in on one entity based on another entities column value when adding or updating the second entity
Entity one is an account record with a balance
The new or updated entity is a transaction record against that account
I want to update the balance on the account record based on the value of the new transaction, or an update on the value of the transaction
I saw TransactWriteItems as a possible solution, but this appears to update records with the same key values?
So my question is, should I be doing this via consecutive calls in the front end, ie add or update the transaction, and on “success” make a second call to update the account balance, or is there something available to update both records in a single call?