commanded-ecto-projections icon indicating copy to clipboard operation
commanded-ecto-projections copied to clipboard

How to insert data in different tables for one event?

Open MMore opened this issue 4 years ago • 2 comments

Hello,

first of all, thanks a lot for this nice library :)

I was wondering how to insert data in different tables for one event? For instance, two Ecto.Multi.insert() results in seeing only the result of the last one in the table.

MMore avatar May 14 '21 19:05 MMore

Hi @MMore,

I don't think there should be anything preventing writing to several tables in response to one event.

Maybe you can share the code that doesn't behave as expected?

anderslemke avatar Aug 29 '23 07:08 anderslemke