booster icon indicating copy to clipboard operation
booster copied to clipboard

[Question] - How to return data from a command

Open LaiaPerez88 opened this issue 4 years ago • 1 comments

I really thought I saw an existing issue for this. I understand commands are not meant to return entity or read model data. However, returning generated UUIDs could be useful for web applications to wait for read model updates based on the id. Without this, it is impossible for a web application to open a detail page after creating a new "entity". The only other solution would be to pass an ID from the web application, but this would introduce security issues unless extra validation is added.

LaiaPerez88 avatar Jul 27 '21 16:07 LaiaPerez88

@thomas-advantitge, This isn't possible currently but we have created this GitHub issue to implement it soon.

LaiaPerez88 avatar Jul 27 '21 16:07 LaiaPerez88