AbstractStorage
Abstract storage for Vo. Any method here must be implemented. If not, will throw a StorageError
Constructor Summary
Public Constructor | ||
public |
constructor(collection: Object | Array | String) |
Member Summary
Public Members | ||
public get |
collection: Object | Array | String |
Method Summary
Public Methods | ||
public abstract |
Delete collection Object from criteria |
|
public abstract |
Get a list of data Object from criteria and options |
|
public abstract |
Insert many data Object in storage |
|
public abstract |
Update collection from criteria |
Public Constructors
Public Methods
public abstract delete(criteria: Object): Promise<integer, Error> source
Delete collection Object from criteria
Params:
Name | Type | Attribute | Description |
criteria | Object | MongoDb criteria Object |
public abstract get(criteria: Object, options: Object): Promise<Object[], Error> source
Get a list of data Object from criteria and options
public abstract insert(Object[]: *): Promise<Object[], Error> source
Insert many data Object in storage
Params:
Name | Type | Attribute | Description |
Object[] | * |
|
dataArray - a list of data Object |