Questions tagged [couchdb-nano]

Nano is the Official Apache CouchDB library for Node.js.

Nano is the Official Apache CouchDB library for Node.js.

132 questions
0
votes
3 answers

Import CouchDB Nano 6.4 Typings in Typescript

I want to use CouchDB as database-backend in a NodeJS app with Typescript. CouchDb-Nano is used for this, since it provides the required Typings. So I installed both packages: "devDependencies": { "@types/nano": "^6.4.5" }, …
Daniel
  • 968
  • 3
  • 13
  • 32
0
votes
0 answers

How to store credentials in Vue app needed for module requirement

I've developed a Vue app that gets its data from a CouchDB backend only after a user has logged in with the right credentials. The current state requires the user to enter login info every time the browser is reloaded, and also leaves the login…
David J.
  • 1,753
  • 13
  • 47
  • 96
0
votes
1 answer

nodejs: multiple GET requests with async nano/express not working

I have a superstrange error with node.js and express which is driving me nuts for two days now. I want to display a series of images on my web app. Therefore, I'm sending a GET request from the client to my express API, which then should deliver…
Kinesias
  • 354
  • 1
  • 5
  • 18
0
votes
1 answer

Using nano-promises to force synchronous CouchDB queries and updates

I am using nano-promise to attempt to force the following code in node.js to run in series. However, the below promises appear to still complete before the first CouchDB insert is complete. This causes an issue because later promises will have…
TheN1nth
  • 3
  • 1
0
votes
2 answers

Getting 409 trying to insert attachment to existing doc via Sync Gateway

I am trying to add an attachment to an existing document. I am using the nano library to send the data and attachments, for later access via CBLite. Those documents I created from the db.attachment.insert seem to be fine. However, now I need to add…
Adamski
  • 3,585
  • 5
  • 42
  • 78
0
votes
1 answer

Unauthorised admin on Cloudant Local using nodejs-cloudant (nano)

I've been trying to get cloudant local going for a couple of hours. I've installed via docker as described here I can access the dashboard on localhost:8080 with the default creds. And I can curl the DB when I supply same creds e.g. curl -X PUT…
theSiberman
  • 441
  • 4
  • 14
0
votes
1 answer

Keys not being returned in reduce function

Using Nano to query a Couch view in NodeJS, to count the occurrences of tags in all documents. If I choose reduce in Fauxton on the view, it correctly displays with each tag name as the key, and the count. However, from my Node app, I just get…
user4893295
  • 533
  • 6
  • 25
0
votes
0 answers

Unable to compact the database after updating document

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…
Nisarg Desai
  • 361
  • 3
  • 16
0
votes
1 answer

Json error while trying to use bulk document create on CouchDB(Cloudant) database

Per this https://docs.cloudant.com/document.html#bulk-operations I am trying to insert multiple documents into my cloudant database but I get an error: { "error": { "statusCode": 400, "name": "Error", "request": { "method":…
YAKOVM
  • 9,805
  • 31
  • 116
  • 217
0
votes
2 answers

Returning queries from couchdb using nano

i've written a simple module to handle my couchdb CRUD operations using nano, however i'm having hardship returning from the results i query from the couch database. My Code is as follows. couchdb.js //Select from couch…
Isaac Obella
  • 2,613
  • 2
  • 16
  • 29
0
votes
1 answer

Couchdb `nano` module - Unhandled rejection - is not a function at Object

I Added Couchdb Update Function to my Code and is ok But When I use That inside of bot.onText(/^[\/!#]start$/, msg => { I Have This Error: Unhandled rejection TypeError: alice.update is not a function at Object.bot.onText.msg [as callback] How…
Saeed Heidarizarei
  • 8,406
  • 21
  • 60
  • 103
0
votes
1 answer

CouchDB Cannot update a Document via nano module

I'm using This Node.js module nano Why I Can't Update my Document? I will Want to Make crazy: true and then False again. This is My Code: var nano = require('nano')('http://localhost:5984'); // clean up the database we created…
Saeed Heidarizarei
  • 8,406
  • 21
  • 60
  • 103
0
votes
1 answer

How do couchdb curl commands translate to nano or node's http library?

Trying to use pouchdb and couchdb in a new app I’m building for a client and I’m getting desperate after struggling with what I assume are some of the most basic things. All instructions I find on couchdb are using curl commands and I can’t seem to…
Kriss
  • 326
  • 1
  • 3
  • 12
0
votes
1 answer

Couchdb2 mango/find js api

I have noticed that all the couchdb api helpers don't implement Mango query I have found cradle started working on it, but seems they stoped implementing, nothing on docs about…
0
votes
0 answers

How to create a big number of documents in CouchDB?

I am trying to create a big number of documents in couchDB with nano bulk. I am talking about a million documents in a single DB. I have a loop and in the loop I have a counter that counts 1000 documents and adds them with nano bulk. That works…
Stoyan
  • 3
  • 2
1 2 3
8 9