mirror of
https://github.com/donl/slouch.git
synced 2026-06-30 06:11:57 -06:00
doc(api): find
This commit is contained in:
parent
393fd2e3e7
commit
de5d30d05d
1 changed files with 19 additions and 1 deletions
20
API.md
20
API.md
|
|
@ -39,7 +39,7 @@
|
|||
* destroyAllNonDesign(dbName)
|
||||
* destroyIgnoreConflict(dbName, docId, docRev)
|
||||
* exists(dbName, id)
|
||||
* doc.find(dbName, body, params)
|
||||
* find(dbName, body, params)
|
||||
* get(dbName, docId)
|
||||
* getAndDestroy(dbName, docId)
|
||||
* getIgnoreMissing(dbName, id)
|
||||
|
|
@ -97,3 +97,21 @@
|
|||
* toUsername(userId)
|
||||
* upsertRole(username, role)
|
||||
|
||||
|
||||
### Doc
|
||||
|
||||
#### find(dbName, body, params)
|
||||
|
||||
Find documents using a declarative JSON querying syntax
|
||||
|
||||
Example:
|
||||
|
||||
```js
|
||||
slouch.doc.find('myDB', {
|
||||
selector: {
|
||||
thing: 'findme',
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
See https://docs.couchdb.org/en/latest/api/database/find.html for more details
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue