We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it possible to test a projector by directly calling a function on the projector module, passing an Ecto.Multi struct, an event, and its metadata.
Ecto.Multi
Test a projector by projecting a single event:
{:ok, _changes} = Ecto.Multi.new() |> MyApp.ExampleProjector.project(event, metadata) |> MyApp.Repo.transaction()
Test a projector by reducing a list of events:
multi = Enum.reduce(events, Ecto.Multi.new(), fn event, multi -> MyApp.ExampleProjector.project(multi, event, metadata) end) {:ok, _changes} = MyApp.Repo.transaction(multi)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Make it possible to test a projector by directly calling a function on the projector module, passing an
Ecto.Multi
struct, an event, and its metadata.Examples
Test a projector by projecting a single event:
Test a projector by reducing a list of events:
The text was updated successfully, but these errors were encountered: