Members
Methods
# collection(collectionName) → {Collection}
Gets a reference to a specific collection.
Parameters:
Name | Type | Description |
---|---|---|
collectionName |
string |
Never
# scope(scopeName) → {Scope}
Gets a reference to a specific scope.
Parameters:
Name | Type | Description |
---|---|---|
scopeName |
string |
Never
# async viewQuery(designDoc, viewName, optionsopt, callbackopt) → {Promise.<ViewQueryResult>}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
designDoc |
string | The design document containing the view to query |
|
viewName |
string | The name of the view to query |
|
options |
Object |
<optional> |
|
scanConsistency |
ViewScanConsistency |
<optional> |
|
skip |
number |
<optional> |
|
limit |
number |
<optional> |
|
order |
ViewOrderMode |
<optional> |
|
reduce |
string |
<optional> |
|
group |
boolean |
<optional> |
|
groupLevel |
number |
<optional> |
|
key |
string |
<optional> |
|
keys |
Array.<string> |
<optional> |
|
range |
Object |
<optional> |
|
range.start |
string | Array.<string> |
<optional> |
|
range.end |
string | Array.<string> |
<optional> |
|
range.inclusiveEnd |
boolean |
<optional> |
|
idRange |
Object |
<optional> |
|
idRange.start |
string |
<optional> |
|
idRange.end |
string |
<optional> |
|
fullSet |
boolean |
<optional> |
|
onError |
ViewErrorMode |
<optional> |
|
timeout |
number |
<optional> |
|
callback |
ViewQueryCallback |
<optional> |
Promise.<ViewQueryResult>