mirror of
https://github.com/farcasclaudiu/node-red-contrib-couchdb.git
synced 2026-06-22 09:01:45 +03:00
Sync update.
This commit is contained in:
@@ -1,12 +1,21 @@
|
||||
// Test our understanding of nano
|
||||
var docId = "56d8e35efaa2604f06173dc5";
|
||||
var design = "dd1";
|
||||
var view = "company";
|
||||
|
||||
var nano = require("nano")("http://localhost:5984");
|
||||
var test1 = nano.use("test1");
|
||||
/*
|
||||
test1.get(docId, function(err, body, header) {
|
||||
dump(err, body, header);
|
||||
console.log("Got something!");
|
||||
});
|
||||
*/
|
||||
test1.view(design, view, {key: "MOTOVATE", include_docs: true}, function(err, body, header) {
|
||||
dump(err, body, header);
|
||||
console.log("Got something!");
|
||||
});
|
||||
|
||||
console.log("test-nanon: Core completed");
|
||||
|
||||
function dump(err, body, header) {
|
||||
|
||||
Reference in New Issue
Block a user