You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/07/04 12:13:04 UTC

[GitHub] janl commented on a change in pull request #47: Added find to Nano

janl commented on a change in pull request #47: Added find to Nano
URL: https://github.com/apache/couchdb-nano/pull/47#discussion_r125458061
 
 

 ##########
 File path: lib/nano.js
 ##########
 @@ -458,6 +458,10 @@ module.exports = exports = nano = function dbScope(cfg) {
 
       return relax({db: dbName, doc: docName, qs: qs}, callback);
     }
+	
+	function findDoc(query, callback) {
+		return relax({ db: dbName, path: '_find', method: 'POST', body: query }, callback);
 
 Review comment:
   none of the other methods here do this at this point, I assume `relax()` does this already.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services