From 239272acd849dd90fe563cd6f6b54d94bcbc6d15 Mon Sep 17 00:00:00 2001 From: Geoff Cox Date: Fri, 4 Jan 2019 12:13:00 -0600 Subject: [PATCH] doc(api): link to find --- API.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/API.md b/API.md index 2e1e08f..28fcee6 100644 --- a/API.md +++ b/API.md @@ -39,7 +39,7 @@ * destroyAllNonDesign(dbName) * destroyIgnoreConflict(dbName, docId, docRev) * exists(dbName, id) - * find(dbName, body, params) + * [find(dbName, body, params)](https://github.com/redgeoff/slouch/blob/master/API.md#finddbname-body-params) * get(dbName, docId) * getAndDestroy(dbName, docId) * getIgnoreMissing(dbName, id) @@ -102,16 +102,14 @@ #### find(dbName, body, params) -Find documents using a declarative JSON querying syntax +Find documents using a declarative JSON querying syntax. See https://docs.couchdb.org/en/latest/api/database/find.html for more details. Example: ```js slouch.doc.find('myDB', { selector: { - thing: 'findme', + thing: 'findme' } }); ``` - -See https://docs.couchdb.org/en/latest/api/database/find.html for more details