ModelIndex Class
Packages > @anticrm/core > ModelIndex
Perform model update and forward updates into chained storage if required.
Signature:
export declare class ModelIndex implements DomainIndex
Implements: DomainIndex
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(model, storages) | Constructs a new instance of the ModelIndex class |
Methods
Method | Modifiers | Description |
---|---|---|
tx(ctx, tx) |
Constructors
ModelIndex.(constructor)
Constructs a new instance of the ModelIndex
class
Signature:
constructor(model: Model, storages: Storage[]);
Parameters
Parameter | Type | Description |
---|---|---|
model | Model | |
storages | Storage[] |
Methods
tx
Signature:
tx(ctx: TxContext, tx: Tx): Promise<any>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | TxContext | |
tx | Tx |
Returns:
Promise<any>