after hooks behave the same as before hooks, with chain of middleware
added key as the item when it would otherwise be null
The motivation is to be able to perform some kind of operation after a successful change to DynamoDB. For example, updating elasticsearch. This makes it possible to wait for that secondary operation to complete.
Passing in the key to the hook handlers (at minimum) makes it possible to identify the affected item at the very least.
Coverage decreased (-0.01%) to 98.646% when pulling eb92f237d8c401495394f7cd260b7e38fc56aa71 on ktonon:better-lifecycle-hooks into 6b3f75c123ec1924d70d0ab1178519012c98b079 on clarkie:master.
The motivation is to be able to perform some kind of operation after a successful change to DynamoDB. For example, updating elasticsearch. This makes it possible to wait for that secondary operation to complete.
Passing in the key to the hook handlers (at minimum) makes it possible to identify the affected item at the very least.