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…
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…
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,
…
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?
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…
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…
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…
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…
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…
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",
…
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…
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…
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…
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',
…
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…