Commanded.Commands.ExecutionResult (Commanded v1.3.1) View Source

Contains the aggregate, events, and metadata created by a successfully executed command.

The available fields are:

  • aggregate_uuid - identity of the aggregate instance.

  • aggregate_state - resultant state of the aggregate after executing the command.

  • aggregate_version - resultant version of the aggregate after executing the command.

  • events - a list of the created events, it may be an empty list.

  • metadata - an map containing the metadata associated with the command dispatch.

Link to this section Summary

Link to this section Types

Specs

t() :: %Commanded.Commands.ExecutionResult{
  aggregate_state: struct(),
  aggregate_uuid: String.t(),
  aggregate_version: non_neg_integer(),
  events: [struct()],
  metadata: struct()
}