jamesrweb/elm-cqrs/5.0.0

NOTE: the latest version is 5.0.3

Cqrs

type Response error data msg
= QueryCmd (Cmd msg)
| QueryTask (Task () (QueryResponse error data))
| CommandCmd (Cmd msg)
| CommandTask (Task () (CommandResponse error))

Represents the responses for the batched operations.

type Operation data error msg
= Query (QueryRequest data error msg)
| Command (CommandRequest error msg)

Represents a CQRS operation.

Actions

batch : List (Operation data error msg) -> List (Response error data msg)

Batches a list of queries and commands to be executed in unison.