Constructor
new MONGO_ADAPTER(optionsopt)
Parameters:
| Name | Type | Attributes | Default | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
{} | Configurable options for the mongo adapter Properties
|
- Source:
Methods
create(optionsopt, cbopt) → {Object}
Create method for adapter see _CREATE for more details
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options |
Object |
<optional> |
{} | Configurable options for create |
cb |
function |
<optional> |
false | Callback argument. When cb is not passed function returns a Promise |
- Source:
Returns:
Returns a Promise when cb argument is not passed
- Type
- Object
delete(optionsopt, cbopt) → {Object}
Delete method for adapter see _DELETE and _DELETED for more details
Parameters:
| Name | Type | Attributes | Default | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
{} | Configurable options for create Properties
|
||||||
cb |
function |
<optional> |
false | Callback argument. When cb is not passed function returns a Promise |
- Source:
Returns:
Returns a Promise when cb argument is not passed
- Type
- Object
load(optionsopt, cbopt) → {Object}
Load method for adapter see _LOAD for more details
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options |
Object |
<optional> |
{} | Configurable options for load |
cb |
function |
<optional> |
false | Callback argument. When cb is not passed function returns a Promise |
- Source:
Returns:
Returns a Promise when cb argument is not passed
- Type
- Object
query(optionsopt, cbopt) → {Object}
Query method for adapter see _QUERY and _QUERY_WITH_PAGINATION for more details
Parameters:
| Name | Type | Attributes | Default | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
{} | Configurable options for query Properties
|
||||||
cb |
function |
<optional> |
false | Callback argument. When cb is not passed function returns a Promise |
- Source:
Returns:
Returns a Promise when cb argument is not passed
- Type
- Object
search(optionsopt, cbopt) → {Object}
Search method for adapter see _SEARCH for more details
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options |
Object |
<optional> |
{} | Configurable options for query |
cb |
function |
<optional> |
false | Callback argument. When cb is not passed function returns a Promise |
- Source:
Returns:
Returns a Promise when cb argument is not passed
- Type
- Object
stream(optionsopt, cbopt) → {Object}
Stream method for adapter see _STREAM for more details
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
options |
Object |
<optional> |
{} | Configurable options for stream |
cb |
function |
<optional> |
false | Callback argument. When cb is not passed function returns a Promise |
- Source:
Returns:
Returns a Promise when cb argument is not passed
- Type
- Object
update(optionsopt, cbopt) → {Object}
Update method for adapter see _UPDATE, _UPDATED and _UPDATE_ALL for more details
Parameters:
| Name | Type | Attributes | Default | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
{} | Configurable options for update Properties
|
|||||||||
cb |
function |
<optional> |
false | Callback argument. When cb is not passed function returns a Promise |
- Source:
Returns:
Returns a Promise when cb argument is not passed
- Type
- Object