Skip to content

ModelActionTypes

since v0.9.0

ModelActionTypes = LooseAutocomplete<ModelActionType>[]

Array of model action types, used to track all actions in a transaction or a single action. Supports both known action types with autocomplete and custom string action types.

const middleware: Middleware = {
name: 'logger',
execute: (context, next) => {
console.log('Action types:', context.modelActionTypes.join(', '));
next();
}
};