diff --git a/lib/cradle/database/index.js b/lib/cradle/database/index.js index 3ffcf70..e631acc 100644 --- a/lib/cradle/database/index.js +++ b/lib/cradle/database/index.js @@ -92,3 +92,4 @@ require('./attachments'); require('./changes'); require('./documents'); require('./views'); +require('./mango'); diff --git a/lib/cradle/database/mango.js b/lib/cradle/database/mango.js new file mode 100644 index 0000000..7a5e90d --- /dev/null +++ b/lib/cradle/database/mango.js @@ -0,0 +1,9 @@ +Database = require('./index').Database; + +Database.prototype.find = function(options, callback) { + return this.query({ + method: 'POST', + path: "/_find", + body: options + }, callback); +} \ No newline at end of file diff --git a/package.json b/package.json index bf32d1d..f6097f9 100644 --- a/package.json +++ b/package.json @@ -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": [