View Source OnePiece.Commanded.Command (OnePiece.Commanded v0.9.1)
Defines a module as a "Command". For more information about commands, please read the following:
Link to this section Summary
Functions
Converts the module into an Ecto.Schema
, and derive from Jason.Encoder
.
Link to this section Types
@type t() :: struct()
Link to this section Functions
Converts the module into an Ecto.Schema
, and derive from Jason.Encoder
.
usage
Usage
defmodule MyCommand do
use OnePiece.Commanded.Command, aggregate_identifier: :id
embedded_schema do
# ...
end
end