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
1 answer

Userctx does not return username or roles with cookie authentication

I am using the most recent versions of Node.js, Express, Nano, and CouchDB, and am trying to get the username and roles of the currently authenticated user. I am using cookie authentication, which is working fine. However, the GET request to…
Jay
  • 45
  • 1
  • 7
0
votes
1 answer

Query multiple fields in couchdb with nano

I want to query couchdb the same way I do mysql first using a url and also using nano: SELECT * FROM people WHERE email = 'john@smith.xxx' AND password = 'password' In nano I created my view: db.insert( { "views": { "byLogin": {…
razor8088
  • 293
  • 2
  • 8
0
votes
1 answer

CouchDB complex keys problems - only first two part of array are taken for the range

Somethings wrong with my couchdb complex query processing. I have a map function which emits complex key consisted of 6 params like this: emit([doc.profileId, doc.beamId, doc.name, doc.beambeanchId, "true", attachName], {beamdocId:doc._id,…
Luman75
  • 878
  • 1
  • 11
  • 28
0
votes
1 answer

How to get couchdb design docs into a different url thats not local

Couchdb spits out a url that is like this http://127.0.0.1:5984/roxanne/_design/request/_view/images This has my database and all my json. The problem is I want all the json to be parsed and sent to a different url called /getDocuments. I am using…
0
votes
1 answer

How to replicate CouchDB local to remote with nano -- without duplication?

I'm attempting to replicate my local CouchDB database with a remote database that lives on iriscouch.com. I'm using nano. This works fine -- except that the local documents are added to the existing iriscouch database rather than the local database…
Sam Dutton
  • 14,775
  • 6
  • 54
  • 64
0
votes
1 answer

Simple field query?

I'm using nano to connect to couchDB through node.js; I have read the basic documentation for couch.db and understand it for the most part, but I didn't see a simple query function anywhere. All I would like to do is (from my server), get the value…
Ari
  • 3,489
  • 5
  • 26
  • 47
0
votes
2 answers

Cant get view to render

I am developing an application with node.js, express, couchDB and using nano to communicate with couch. I am using a jquery get request from client javascript. Using fiddler i can see that i get my view in the RAW result but the view is never…
limlim
  • 395
  • 1
  • 6
  • 14
-1
votes
1 answer

Is there a bug with couch-nano changesReader batching, or have I missed something?

This concerns the changesReader API of the couchdb-nano library. Expected Behavior I would expect the following code to wait 10 seconds and then return a batch of messages from the last position in the changes feed. So if I updated the DB 5 times…
Andy
  • 61,948
  • 13
  • 68
  • 95
-1
votes
1 answer

Is this Loop executed synchronous?

i have written this Loop to iterate over some data i've got out of my CouchDB database. I am wondering if this Loop is executed synchronous or if i have to handle it with async/await for example. database.view('test', 'getAllowedTracker',…
Pavel
  • 129
  • 1
  • 4
-1
votes
1 answer

cloudant couchdb multipart insert throwing function_clause error

I am trying to insert a media document to cloudant couchdb using below below code. var uuid = require('uuid').v4; fs.readFile('./test.jpeg', function(err, data) { if (!err) { var newAttachmentObj = { type: 'media', …
AnoopGoudar
  • 914
  • 9
  • 18
-1
votes
3 answers

nano.request() find by query couchDB

I need help with a function nano.request(). I try get data by a request using a cloudant (couchdb) query but i no have idea how make it and i search anywhere. please i need help :P how search by query in a nano.request function?? thanks var query =…
-2
votes
1 answer

Forgot Password function using CouchDB & Node.JS (Nano)

I'm using the PouchDB library on web & react-native. I'm building a login system (login & sign up - already working), but I'm missing an important function: Forgot my password! How can I set a new password using Node.JS -> Nano & CouchDB? I'm using…
Matías Fork
  • 83
  • 1
  • 6
1 2 3
8
9