# `Commanded.Commands.ExecutionResult`
[🔗](https://github.com/commanded/commanded/blob/v1.4.12/lib/commanded/commands/execution_result.ex#L1)

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` - a map containing the metadata associated with the command
    dispatch.

# `t`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
