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

List of constructors for this class
Constructor Modifiers Description
(constructor)(model, storages) Constructs a new instance of the ModelIndex class

Methods

List of methods on this class
Method Modifiers Description
tx(ctx, tx)

Constructors

ModelIndex.(constructor)

Constructs a new instance of the ModelIndex class

Signature:

constructor(model: Model, storages: Storage[]);

Parameters

List of parameters
Parameter Type Description
model Model
storages Storage[]

Methods

tx

Signature:

tx(ctx: TxContext, tx: Tx): Promise<any>;

Parameters

List of parameters
Parameter Type Description
ctx TxContext
tx Tx

Returns:

Promise<any>