Skip to content

MongoDb ​

Class

constructor ​

db ​

addIndexes ​

typescript
public addIndexes(collection: Parameter, indexes: Parameter): Promise<any>
public addIndexes(collection: Parameter, indexes: Parameter): Promise<any>

aggregate ​

typescript
public aggregate(collection: Parameter, query: Parameter, filter: Parameter, operations: Parameter): Promise<any>
public aggregate(collection: Parameter, query: Parameter, filter: Parameter, operations: Parameter): Promise<any>

cast ​

typescript
public cast(value: Parameter, type: Parameter): Promise<any>
public cast(value: Parameter, type: Parameter): Promise<any>

count ​

typescript
public count(collection: Parameter, query: Parameter): Promise<any>
public count(collection: Parameter, query: Parameter): Promise<any>

create ​

typescript
public create(collection: Parameter, data: Parameter): Promise<any>
public create(collection: Parameter, data: Parameter): Promise<any>

find ​

typescript
public find(collection: Parameter, query: Parameter): Promise<any>
public find(collection: Parameter, query: Parameter): Promise<any>

migrate ​

typescript
public migrate(migration: Parameter): Promise<any>
public migrate(migration: Parameter): Promise<any>

patch ​

typescript
public patch(collection: Parameter, id: Parameter, data: Parameter): Promise<any>
public patch(collection: Parameter, id: Parameter, data: Parameter): Promise<any>

remove ​

typescript
public remove(collection: Parameter, id: Parameter): Promise<any>
public remove(collection: Parameter, id: Parameter): Promise<any>

removeIndexes ​

typescript
public removeIndexes(collection: Parameter, indexes: Parameter): Promise<any>
public removeIndexes(collection: Parameter, indexes: Parameter): Promise<any>