commanded v0.12.0 Commanded.Helpers.Commands.CommandHandler

Summary

Functions

Apply the given command to the event sourced aggregate root

Functions

handle(aggregate, arg2)

Apply the given command to the event sourced aggregate root.

You must return a list containing the pending events, or nil / [] when no events produced.

You should return {:error, reason} on failure.

Callback implementation for Commanded.Commands.Handler.handle/2.