Skip to content

Commit

Permalink
Merge pull request #311 from cgaspard/master
Browse files Browse the repository at this point in the history
Added mango find function
  • Loading branch information
panuhorsmalahti authored Oct 3, 2016
2 parents 33cb730 + 35ce68f commit 1042ee4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/cradle/database/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,4 @@ require('./attachments');
require('./changes');
require('./documents');
require('./views');
require('./mango');
9 changes: 9 additions & 0 deletions lib/cradle/database/mango.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Database = require('./index').Database;

Database.prototype.find = function(options, callback) {
return this.query({
method: 'POST',
path: "/_find",
body: options
}, callback);
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cradle",
"version": "0.7.1",
"version": "0.7.2",
"description": "the high-level, caching, CouchDB library",
"url": "http://cloudhead.io/cradle",
"keywords": [
Expand Down

0 comments on commit 1042ee4

Please sign in to comment.