About DDB transactions: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transactions.html
-
You cannot have more than one operation in your transaction for a single item.
-
You cannot use the results of one operation as an input to another operation in the same transaction.
-
Aside from the uniqueness of the primary key, there is no enforced dependency (nor enforced non/anti-dependency) between any items in the same table.
-
There are no dependencies between items in different tables (such as a foreign key requirement) that DynamoDB enforces.
https://stackoverflow.com/questions/56958718/does-the-order-of-operations-in-a-transaction-matter
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/transaction-example.html
https://aws.amazon.com/blogs/aws/new-amazon-dynamodb-transactions/
- Do
amplify mock
- See section
Local Debugging and Customizing VTL Resolvers
in https://aws.amazon.com/blogs/mobile/amplify-framework-local-mocking/ - https://stackoverflow.com/questions/50608382/where-can-i-log-debug-velocity-template-language-vtl-in-aws-appsync
- Do
$util.error($MY_OBJECT)
to view data in the graphql playground