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
3
votes
2 answers

Nodejs stream video from CouchDB and display in video tag

I am trying to stream video attachment from CouchDB using nano middleware in NodeJS. Video is received on the browser. I do not know how I should stream it on client and how to display it in HTML Tag. Here is my NodeJS code to read attachment from…
Bhoomi
  • 781
  • 6
  • 22
2
votes
0 answers

How to import nano/couchdb to nestjs project?

I have trouble importing and using Nano library for CouchDB in nestjs, or I am doing it wrong. The URL needs authentication credentials. I need to know a safe way and a practical way to start with CouchDB in a nestjs app (maybe some npm package that…
Tinaira
  • 727
  • 2
  • 7
  • 23
2
votes
0 answers

“Only reserved document ids may start with underscore." when trying to use _find

I'm working with CouchDB and am trying to search a db using _find. I am currently running into the following error: error: 'illegal_docid', reason: 'Only reserved document ids may start with underscore.', scope: 'couch', statusCode: 400, …
2
votes
1 answer

How to check if a database exists with CouchDB Nano

I need to check if a given database exists before querying it. I've looked at this question, but I cannot replicate on Node.js using CouchDB Nano. Does anyone know how to check it using the Nano library?
Michele Riva
  • 552
  • 9
  • 24
2
votes
3 answers

How to import nano (couchdb) - typescript

I have trouble importing and using nano in my node application. The js way (from the doc) is : var nano = require('nano')('http://localhost:5984'); How do I do that with typescript ? I tried import * as Nano from "nano"; let nano = new…
Ostn
  • 803
  • 1
  • 9
  • 27
2
votes
1 answer

Best practice for multiple organisations on couch

So I have a node express app using nano with couchdb as the backend, this is running fine. I'm now looking to learn how I would expand it to multiple organisations. So for instance, a wildcard DNS record allowing https://customername.myapp.com for…
user4893295
  • 533
  • 6
  • 25
2
votes
1 answer

Editing/Updating nested objects in documents CouchDB (node.js)

I'm trying to add (aka. push to existing array) in couchDB document. Any feedback is greatly appreciated. I have a document called "survey" inside my database called "database1". I have "surveys" as a set of arrays which consists of objects that…
Harris Lee
  • 93
  • 1
  • 2
  • 7
2
votes
1 answer

Get all doc data from Cloudant as opposed to id, key, value

Trying to query against my db to get all docs with all info. The db.list functionality gets the overview of the docs but does not return all the data for the docs. Currently have to get the high level data then loop through the rows and query each…
HollyOS
  • 426
  • 2
  • 13
2
votes
3 answers

couchdb update design doc

I have a nodejs application where i connect to my couchdb using nano with the following script: const { connectionString } = require('../config'); const nano = require('nano')(connectionString); // creates database or fails silent if…
Sander Garretsen
  • 1,683
  • 10
  • 19
2
votes
2 answers

couchdb view to select records with key contained in array in document

Trying to get my head around couchdb... first time using a database that isn't SQL. Trying to figure out how to write a view that returns all users in a particular team.... User docs are like this: { "_id": "e3031a9eb16dd879fbe78b61f800378b", …
Vida
  • 480
  • 7
  • 18
2
votes
2 answers

How to get a table's data in couchdb

I'm very new to couchdb so my question may seem very simple; I'm using nano to connect to my couchdb; I have read most of the documentation, however I couldn't figure out how I can get all of the data in a table? What is the syntax to get all of the…
user3399784
2
votes
1 answer

Architecting CouchDB with nodejs

Does anyone have any experience with CouchDB where a real DAL was utilized? CouchDB is not like any other datastore out there, esp. due to its notion of views which add an interesting dynamic to data - business logic separation... not to mention…
JayPrime2012
  • 2,672
  • 4
  • 28
  • 44
2
votes
2 answers

get list of all view names in couchdb

Is it possible to get a list of all the views of a database in couchdb using [dscape/nano][1]? The closest I can get with just curl request is this: http://URL/DBNAME/_all_docs?key=_design/views&include_docs=true. The above returns all the views…
user1102171
  • 624
  • 1
  • 8
  • 21
2
votes
2 answers

CouchDB throws '404 missing' error when inserting a user using nano

It seems CouchDB will randomly throw an error when trying to insert a user. Here is the full response from CouchDB: { [Error: missing] name: 'Error', scope: 'couch', status_code: 404, 'status-code': 404, request: { method: 'POST', …
Willem Ellis
  • 4,886
  • 7
  • 38
  • 55
2
votes
2 answers

Bulk upload attachments to couchDB using node.js nano module

I'm trying to bulk upload attachments to CouchDB using node.js and nano. First, the walk module is used to find all files in upload folder and create array from them. Next, each file from the array is supposed to be inserted into CouchDB via pipe…
user1276919
  • 550
  • 5
  • 25
1
2
3
8 9