Database transaction boundary
gabrielanhaia opened this issue · comments
Gabriel Anhaia commented
Hey there.
This is not 100% a request for a feature, but it might be interesting for some people to know (as for me).
I would like to know where you guys would wrap the database insertion into a transaction.
Looking at the project, my best guess would be here:
But I am not 100% sure.
Thanks a lot in advance, and feel free to close this issue if it is the wrong channel
Rafa Gómez commented
Wrapping the Use Case or doing a middleware before the command handler. Something like this 🙂
Gabriel Anhaia commented
Thanks a lot @rgomezcasas