Methods
drop() → {Promise.<T>}
removes all stored documents
- Source:
Returns:
- Type
- Promise.<T>
find(query) → {MongoCursorFake}
find documents in the database
Parameters:
Name | Type | Description |
---|---|---|
query |
currently has support for the following (anything else will be ignored and all documents will be returned)
|
- Source:
Returns:
- Type
- MongoCursorFake
insertMany(docs) → {Promise.<{insertedCount}>}
insert documents into the database
Parameters:
Name | Type | Description |
---|---|---|
docs |
Array of objects |
- Source:
Returns:
- Type
- Promise.<{insertedCount}>
updateMany(filter, update, options) → {Promise.<T>}
update many documents in the database
Parameters:
Name | Type | Description |
---|---|---|
filter |
currently has support for the following (anything else will be ignored and all documents will be updated)
|
|
update |
Supports $set |
|
options |
ignored |
- Source:
Returns:
- Type
- Promise.<T>