Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Commit

Permalink
Merge branch 'shtaft-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes J. Schmidt committed May 16, 2016
2 parents 8f9ac0e + 110e2a7 commit fdf96ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,17 +493,18 @@ bulk operations(update/delete/insert) on the database, refer to the

### db.list([params], [callback])

list all the docs in the database with optional query string additions `params`.
list all the docs in the database with optional query string additions `params`. This is useful for searching.

``` js
alice.list(function(err, body) {
alice.list({startkey:'cat', limit:3}, function(err, body) {
if (!err) {
body.rows.forEach(function(doc) {
console.log(doc);
});
}
});
```
For a full list of params, see [couchdb doc](https://wiki.apache.org/couchdb/HTTP_view_API#Querying_Options).

### db.fetch(docnames, [params], [callback])

Expand Down

0 comments on commit fdf96ce

Please sign in to comment.