I am new to couchdb and i am implementing it now to see weather to use it for new project will be good or not. so i id search for that i am using the following driver to operate it with Node.js https://github.com/apache/couchdb-nano
here just trying to do CRUD operation so i just write this code to test delete document.
var express = require('express');
var router = express.Router();
var nano = require('nano')('http://127.0.0.8:5984');
var docTest = nano.use('test');
nano.db.destroy("test",function(err,data){
console.log(err);
});)
nano.db.comapact("test",function(err,data){
console.log(err);
});
that gives me a following error any idea how to solve it?
TypeError: nano.db.comapact is not a function