cqrs

Entry point exports

Modules

CqrsModule

Classes

CommandHandlerNotFoundException
InvalidCommandHandlerException
InvalidEventsHandlerException
InvalidSagaException
QueryHandlerNotFoundException
UnsupportedSagaScopeException

Decorators

Publishable

Merges event publisher with the decorated class. Implements the publish and publishAll methods in a similar way to {@link EventPublisher#mergeClassContext}.

Structures

CqrsModuleAsyncOptions

Options for the CqrsModuleAsyncOptions.

CqrsModuleOptions

Options for the CqrsModule.

CqrsModuleOptionsFactory

Options for the CqrsModuleOptionsFactory.

ICommandBus

Represents a command bus.

ICommandPublisher

Represents a command publisher.

IQueryBus

Represents a query bus.

IQueryPublisher

Represents a query publisher.

Types

CommandHandler

Decorator that marks a class as a Nest command handler. A command handler handles commands (actions) executed by your application code.

EventsHandler

Decorator that marks a class as a Nest event handler. An event handler handles events executed by your application code.

ICommandHandler

Represents a command handler. Command handlers are used to execute commands.

IQueryHandler

Represents a query handler.

QueryHandler

Decorator that marks a class as a Nest query handler. A query handler handles queries executed by your application code.

Saga

Decorator that marks a class as a Nest saga. Sagas may listen and react to 1..N events.