dxfrontier / cds-ts-dispatcher

SAP CAP TypeScript entity handler dispatcher.
11 stars 2 forks source link

[FEATURE] `@AfterReadEachItem()` decorator to get mass data run over every item of the after READ #59

Closed dragolea closed 3 months ago

dragolea commented 3 months ago

Description

Would be nice to have a @AfterReadEachItem() decorator to run over every item, the opposite to @AfterRead which provides an array of items

Suggested solution

@AfterReadEachItem()
private async aMethod(
   @Result() entity: MyEntity,      
   @Req() request: Request
) {
// ...
}