exon v0.1.8 Exon.Ecto.AggregateRoot behaviour

Summary

Callbacks

A callback to define the query used to fetch the Ecto aggregate

Callbacks

get(id)
get(id :: term) :: Ecto.Queryable.t

A callback to define the query used to fetch the Ecto aggregate

The value of the id argument is taken from the command’s payload using the key provided as :aggregate_id in the command spec.