commanded_ecto_projections v0.1.0 Commanded.Projections.Ecto

Read model projections for Commanded using Ecto.

Example usage:

defmodule Projector do
  use Commanded.Projections.Ecto, name: "my-projection"

  project %Event{}, _metadata do
    Ecto.Multi.insert(multi, :my_projection, %MyProjection{...})
  end

  project %AnotherEvent{} do
    Ecto.Multi.insert(multi, :my_projection, %MyProjection{...})
  end
end

Link to this section Summary

Link to this section Functions

Link to this macro project(event, list) (macro)
Link to this macro project(event, metadata, list) (macro)