dynamo-easy icon indicating copy to clipboard operation
dynamo-easy copied to clipboard

It would be great to have TypeORM like model listeners

Open vkartaviy opened this issue 5 years ago • 4 comments

Please see https://typeorm.io/#/listeners-and-subscribers for the reference.

vkartaviy avatar May 02 '19 12:05 vkartaviy

Thanks for the suggestion, sounds like an interesting feature to me. But this is out of scope for us right now. Keeping it open to see if more people are interested.

michaelwittwer avatar May 06 '19 07:05 michaelwittwer

I'm migrating away from TypeORM and am evaluating dynamo-easy. Seems like it hits the sweet spot with retaining compatibility with Type-GraphQL and Type-DI... I was wondering about subscribers as well, but I'm not sure if this is super-necessary given AWS Lambda's capacity for event triggers.

NoelBaron avatar Jul 27 '19 13:07 NoelBaron

Hi @NoelBaron. Thanks for looking into dynamo-easy. Would be nice to get more details about the use-case if you run into the situation where you really need a feature like this.

michaelwittwer avatar Jul 29 '19 05:07 michaelwittwer

We started writing our own orm abstraction for dynamodb, but this seems more complete and I wish I had discovered it earlier.

Having hooks to listen for certain events would be great to generify logic. And I'm sure at some point that will be a very welcome feature.

However ....

[...] but I'm not sure if this is super-necessary given AWS Lambda's capacity for event triggers.

... I also do agree with this statement. But not having implemented dynamodb stream lambda hooks yet, I'm not sure if there are any pain-points. The devil is usually in the detail.

simlu avatar Sep 02 '19 20:09 simlu