mirror of
https://github.com/farcasclaudiu/node-red-contrib-couchdb.git
synced 2026-06-28 21:01:41 +03:00
Initial upload.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// Test our understanding of nano
|
||||
var docId = "56d8e35efaa2604f06173dc5";
|
||||
|
||||
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!");
|
||||
});
|
||||
console.log("test-nanon: Core completed");
|
||||
|
||||
function dump(err, body, header) {
|
||||
console.log("err: " + JSON.stringify(err) + "\nbody: " + JSON.stringify(body) + "\nheader: " + JSON.stringify(header));
|
||||
}
|
||||
Reference in New Issue
Block a user