View Source OnePiece.Commanded (OnePiece.Commanded v0.10.0)
Extend Commanded
package. A swiss army knife for applications following Domain-Driven Design (DDD), Event Sourcing
(ES), and Command and Query Responsibility Segregation (CQRS).
Link to this section Summary
Functions
Copy the information from the params
map into the given target
map.
Link to this section Functions
Copy the information from the params
map into the given target
map.
iex> OnePiece.Commanded.cast_to(%{}, %{name: "ubi-wan", last_name: "kenobi"}, [:last_name])
%{last_name: "kenobi"}