Document the usage of `multi`.
suzdalnitski opened this issue · 2 comments
suzdalnitski commented
It's not immediately clear what the multi
passed to the projection function actually does:
project (%MyEvent{}, _, fn multi -> ... end)
How does using this multi differ from returning a new Ecto.Multi
?
project (%MyEvent{}, _, fn -> Ecto.Multi.new() ... end)
Does the multi
passed to the projection function already contain some other operations? Does it group some other operations together with the projection?
Thanks!
yordis commented
Does the multi passed to the projection function already contain some other operations?
Yes
Does it group some other operations together with the projection?
Yes
How does using this multi differ from returning a new Ecto.Multi?
No differences. That multi
is an Ecto.Multi
yordis commented
@suzdalnitski do you mind creating a PR tackling your concern?